Commit 44138137 authored by Ulrich Sibiller's avatar Ulrich Sibiller

Binder.c: scope improvements

parent d86cb00b
......@@ -46,19 +46,14 @@ int nxagentCheckBinder(int argc, char *argv[], int i)
{
if (++i < argc)
{
char *display;
char *found;
int port;
display = argv[i];
char *display = argv[i];
/*
* Check if a display specification follows
* the -B switch.
*/
found = rindex(display, ':');
char *found = rindex(display, ':');
if (found == NULL || *(found + 1) == '\0' ||
isdigit(*(found + 1)) == 0)
......@@ -69,7 +64,7 @@ int nxagentCheckBinder(int argc, char *argv[], int i)
return 0;
}
port = atoi(found + 1);
int port = atoi(found + 1);
#ifdef TEST
fprintf(stderr, "nxagentCheckBinder: Identified agent display port [%d].\n",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment