public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/1939] New: int return instead of enum value in inet/getnetgrent_r.c
@ 2005-11-28 15:14 heiko dot nardmann at secunet dot com
  2005-11-28 15:17 ` [Bug libc/1939] " heiko dot nardmann at secunet dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: heiko dot nardmann at secunet dot com @ 2005-11-28 15:14 UTC (permalink / raw)
  To: glibc-bugs

In the file inet/getnetgrent_r.c in function setup() at line 57 there is the 
following block: 
 
  else if (startp == (service_user *) -1)  
    /* No services at all.  */  
    return 1;  
  else  
 
Now I wonder what "1" stands for; according to nss/nss.h "1" stands for 
NSS_STATUS_SUCCESS. But NSS_STATUS_UNAVAIL seems to be the right thing IMHO. 
At least returning an integer value instead of enum value is not clean.

-- 
           Summary: int return instead of enum value in inet/getnetgrent_r.c
           Product: glibc
           Version: 2.3.5
            Status: NEW
          Severity: minor
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: heiko dot nardmann at secunet dot com
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=1939

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-12-16 11:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-28 15:14 [Bug libc/1939] New: int return instead of enum value in inet/getnetgrent_r.c heiko dot nardmann at secunet dot com
2005-11-28 15:17 ` [Bug libc/1939] " heiko dot nardmann at secunet dot com
2005-11-28 15:23 ` heiko dot nardmann at secunet dot com
2005-12-16 11:13 ` kukuk at suse dot de
2005-12-16 11:14 ` kukuk at suse dot de
2005-12-16 11:14 ` kukuk at suse dot de

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).