Fix a 64-bit'ism in the handling of the ident service. sysctlbyname() takes

a size_t as its 3rd argument, which is 64-bits on the alpha.  The 'len'
variable used was a int, which is only 32-bits.  Use size_t as the type
for 'len' to work-around this.
This commit is contained in:
John Baldwin 2000-05-30 18:32:58 +00:00
parent 794e74c1d2
commit 1078172a77

View File

@ -348,7 +348,8 @@ ident_stream(s, sep) /* Ident service (AKA "auth") */
fd_set fdset;
char buf[BUFSIZE], *cp = NULL, *p, **av, *osname = NULL, garbage[7];
char *fallback = NULL;
int len, c, fflag = 0, nflag = 0, rflag = 0, argc = 0, usedfallback = 0;
size_t len;
int c, fflag = 0, nflag = 0, rflag = 0, argc = 0, usedfallback = 0;
int gflag = 0, Rflag = 0, getcredfail = 0;
u_short lport, fport;