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/1950] New: wrong return type in posix/regex_internal.c


In file posix/regex_internal.c the function build_wcs_upper_buffer() is defined 
as returning int. See: 
 
static int 
build_wcs_upper_buffer (pstr) 
     re_string_t *pstr; 
{ 
... 
} 
 
But it is used inside re_string_construct() as a function with enum return 
type. In re_string_reconstruct() it is used as int but the int value ('ret') is 
returned there despite the fact that re_string_reconstruct() is defined with a 
enum return type.

-- 
           Summary: wrong return type in posix/regex_internal.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=1950

------- 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]