Bug 692129

Summary: Incorrect strchr/strrchr/strchrnul prototype
Product: Red Hat Enterprise Linux 6 Reporter: H.J. Lu <hongjiu.lu>
Component: glibcAssignee: Andreas Schwab <schwab>
Status: CLOSED NOTABUG QA Contact: qe-baseos-tools-bugs
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.0CC: fweimer
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-03-30 14:02:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description H.J. Lu 2011-03-30 13:43:39 UTC
This is a regression from EL4 and EL5:

[hjl@gnu-4 tmp]$ cat x.c
#include <string.h>

char *foo(const char *filename) {
  char *splitpos;

  splitpos = strrchr(filename, '/');
  return splitpos;
}
[hjl@gnu-4 tmp]$ g++ x.c
x.c: In function \u2018char* foo(const char*)\u2019:
x.c:6:35: error: invalid conversion from \u2018const char*\u2019 to
\u2018char*\u2019
[hjl@gnu-4 tmp]$

Comment 1 Andreas Schwab 2011-03-30 14:02:18 UTC
As required by the C++ standard.