get_xsockets returns int, not unsigned
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4962 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -355,6 +355,7 @@ doit_active (char *host, char *user,
|
|||||||
int len = strlen(user);
|
int len = strlen(user);
|
||||||
void *ret;
|
void *ret;
|
||||||
u_int32_t tmp;
|
u_int32_t tmp;
|
||||||
|
int tmp2;
|
||||||
char *s;
|
char *s;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
@@ -412,10 +413,10 @@ doit_active (char *host, char *user,
|
|||||||
} else
|
} else
|
||||||
p++;
|
p++;
|
||||||
|
|
||||||
tmp = get_xsockets (&nsockets, &sockets, tcpp);
|
tmp2 = get_xsockets (&nsockets, &sockets, tcpp);
|
||||||
if (tmp < 0)
|
if (tmp2 < 0)
|
||||||
return 1;
|
return 1;
|
||||||
display_num = tmp;
|
display_num = tmp2;
|
||||||
if (tcpp)
|
if (tcpp)
|
||||||
snprintf (display, display_size, "localhost:%u", display_num);
|
snprintf (display, display_size, "localhost:%u", display_num);
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user