This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/2079] New: return value mismatch in libio/fputwc_u.c


In function fputwc_unlocked() in libio/fputwc_u.c two different return types   
are used for error situations; one time EOF, the other time WEOF. Is this  
intention or shall EOF be replaced by WEOF? 
   
wint_t   
fputwc_unlocked (wc, fp)   
     wchar_t wc;   
     _IO_FILE *fp;   
{   
  CHECK_FILE (fp, EOF);   
  if (_IO_fwide (fp, 1) < 0)   
    return WEOF;   
  return _IO_putwc_unlocked (wc, fp);   
}

-- 
           Summary: return value mismatch in libio/fputwc_u.c
           Product: glibc
           Version: 2.3.6
            Status: NEW
          Severity: enhancement
          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=2079

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]