Stuart Henderson <[email protected]> writes:

[...]

>> >            while ((error = getpwnam_r("root", &ent, buf, bufsiz, &found))) 
>> > {
>> >                    fprintf(stderr, "bufsiz:%zu error:%s\n", bufsiz, 
>> > strerror(error));
>>                                                                              
>>      ^^^^^
>> I think you mean errno, not error.
>
> errno for getpwnam, but this is getpwnam_r, generally the thread-safe
> functions specify returning an error code in addition to setting errno.

*headdesk*

Sorry, William.

-- 
jca | PGP: 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE
(previous: 0x06A11494 / 61DB D9A0 00A4 67CF 2A90  8961 6191 8FBF 06A1 1494)

Reply via email to