home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / att / 2166 < prev    next >
Encoding:
Text File  |  1992-09-08  |  934 b   |  32 lines

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