Path: utzoo!dptcdc!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!dogie!indri!aplcen!arrom From: arrom@aplcen.apl.jhu.edu (Ken Arromdee) Newsgroups: comp.unix.questions Subject: Re: again Message-ID: <1066@aplcen.apl.jhu.edu> Date: 18 Apr 89 18:14:12 GMT References: <1051@aplcen.apl.jhu.edu> <510@visdc.UUCP> Reply-To: arrom@aplcen.apl.jhu.edu (Ken Arromdee (600.429)) Organization: Johns Hopkins University Lines: 14 >You have declared getuid() to return an unsigned short. Setuid expects >its argument to be an int. Lint(1) complains. >John E Van Deusen III, PO Box 9283, Boise, ID 83707, (208) 343-1865 I just tried it again, only adding a cast to int. The same problem happened. This was expected, since C (at least pre-ANSI) widens arguments of short to int. Thus, setuid would be getting an int anyway, despite the fact that I omitted the cast. -- "But then, two Dr. McCoy's just might bring the level of medical efficiency on this ship up to acceptable levels." Kenneth Arromdee (UUCP: ....!jhunix!ins_akaa; BITNET: g49i0188@jhuvm; INTERNET: arromdee@crabcake.cs.jhu.edu) (please, no mail to arrom@aplcen)