| Summary: | Incorrect strchr/strrchr/strchrnul prototype | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | H.J. Lu <hongjiu.lu> |
| Component: | glibc | Assignee: | Andreas Schwab <schwab> |
| Status: | CLOSED NOTABUG | QA Contact: | qe-baseos-tools-bugs |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.0 | CC: | 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: | |
As required by the C++ standard. |
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]$