Re: [PATCH,TRIVIAL] AF_UNIX, accept() and addrlen
From: Samuel Thibault
Date: Wed Apr 23 2008 - 20:17:24 EST
Michael Kerrisk, le Fri 18 Apr 2008 18:52:21 +0200, a écrit :
> >> +is
> >> +.IR sizeof(sa_family_t) ,
>
> Why did you write sa_family_t here?
Because to me it made more sense.
> Dave M already said sizeof(short), which is the same thing,
Ok, but that's exposing implementation.
> and I see that in net/unix/af_unix.c::unix_getname() there is:
>
> *uaddr_len = sizeof(short);
I'd say that code should be fixed into using sa_family_t.
Samuel
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/