public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "heiko dot nardmann at secunet dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sources.redhat.com
Subject: [Bug libc/1939] New: int return instead of enum value in inet/getnetgrent_r.c
Date: Mon, 28 Nov 2005 15:14:00 -0000	[thread overview]
Message-ID: <20051128151414.1939.heiko.nardmann@secunet.com> (raw)

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.


             reply	other threads:[~2005-11-28 15:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-28 15:14 heiko dot nardmann at secunet dot com [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051128151414.1939.heiko.nardmann@secunet.com \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=glibc-bugs@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).