again
William Kucharski
kucharsk at uts.amdahl.com
Wed Apr 19 06:51:12 AEST 1989
In article <510 at visdc.UUCP> jiii at visdc.UUCP (John E Van Deusen III) writes:
>In article <1051 at aplcen.apl.jhu.edu> (Ken Arromdee (600.429)) writes:
>> extern unsigned short getuid();
>> ...
>>
>> setuid(getuid());
>
>You have declared getuid() to return an unsigned short. Setuid expects
>its argument to be an int. Lint(1) complains.
BSD getuid() returns an int. SYSV getuid() returns an unsigned short.
--
William Kucharski
ARPA: kucharsk at uts.amdahl.com
UUCP: ...!{ames,decwrl,sun,uunet}!amdahl!kucharsk
Disclaimer: The opinions expressed above are my own, and may not agree with
those of any other sentient being, not to mention those of my
employer. So there.
More information about the Comp.unix.questions
mailing list