Path: utzoo!dptcdc!jarvis.csri.toronto.edu!mailrus!iuvax!rutgers!apple!amdahl!kucharsk From: kucharsk@uts.amdahl.com (William Kucharski) Newsgroups: comp.unix.questions Subject: Re: again Message-ID: <1aa=A982=w1010C9TVk@amdahl.uts.amdahl.com> Date: 18 Apr 89 20:51:12 GMT References: <1051@aplcen.apl.jhu.edu> <510@visdc.UUCP> Reply-To: kucharsk@amdahl.uts.amdahl.com (William Kucharski) Organization: Amdahl Coup, UTS Products Hen House Lines: 21 In article <510@visdc.UUCP> jiii@visdc.UUCP (John E Van Deusen III) writes: >In article <1051@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@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.