home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!dtix!mimsy!nmrdc1!dsc3jfs
- From: dsc3jfs@nmrdc1.nmrdc.nnmc.navy.mil (Jim Small)
- Newsgroups: comp.sys.att
- Subject: Re: 3b2 getpwnam...
- Message-ID: <1992Sep8.171601.5507@nmrdc1.nmrdc.nnmc.navy.mil>
- Date: 8 Sep 92 17:16:01 GMT
- References: <1992Sep4.223124.1@eagle.wesleyan.edu>
- Organization: Naval Medical Research & Development Command
- Lines: 21
-
- In article <1992Sep4.223124.1@eagle.wesleyan.edu> triemer@eagle.wesleyan.edu writes:
- >but necessary for the broken compiler). I have run into 3 files that have
- >warning errors.
- >2 of the errors comes after...
- >
- > struct passwd *pwd = getpwnam(argv[optind]);
- >
- >(* This is a problem because getpwnam seems to return an int.. *)
- >
- >The other error comes from
- > register struct passwd *pwd;
- > pw = getpwuid(uid);
-
-
- Just curious, do you have a
- #include <pwd.h> at the beginning of your program?
-
-
- --
- I hate the 3B2
- The 3B2 can bite me.
-