[1685] in Athena Bugs

home help back first fref pref prev next nref lref last post

C Lint library: getsockname(2)

daemon@ATHENA.MIT.EDU (John T Kohl)
Sat Jan 21 14:10:16 1989

Date: Sat, 21 Jan 89 14:09:41 EST
From: John T Kohl <jtkohl@ATHENA.MIT.EDU>
To: bugs@ATHENA.MIT.EDU
The C lint library says this about the setsockopt() syscall:
int	getsockname(s, name, namelen) char *name; int *namelen; { return(0); }

While the man page says:
     getsockname(s, name, namelen)
     int s;
     struct sockaddr *name;
     int *namelen;

Note the inconsistency on arg #2: one says char *, one says struct sockaddr *.

John

home help back first fref pref prev next nref lref last post