public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/12622] New: Incorrect strchr/strrchr/strchrnul prototype
@ 2011-03-30 13:41 hjl.tools at gmail dot com
  2011-03-30 13:43 ` [Bug libc/12622] " jakub at redhat dot com
  2014-06-27 13:19 ` fweimer at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: hjl.tools at gmail dot com @ 2011-03-30 13:41 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=12622

           Summary: Incorrect strchr/strrchr/strchrnul prototype
           Product: glibc
           Version: 2.13
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper.fsp@gmail.com
        ReportedBy: hjl.tools@gmail.com


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

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug libc/12622] Incorrect strchr/strrchr/strchrnul prototype
  2011-03-30 13:41 [Bug libc/12622] New: Incorrect strchr/strrchr/strchrnul prototype hjl.tools at gmail dot com
@ 2011-03-30 13:43 ` jakub at redhat dot com
  2014-06-27 13:19 ` fweimer at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: jakub at redhat dot com @ 2011-03-30 13:43 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=12622

Jakub Jelinek <jakub at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |jakub at redhat dot com
         Resolution|                            |INVALID

--- Comment #1 from Jakub Jelinek <jakub at redhat dot com> 2011-03-30 13:43:32 UTC ---
THat is completely intentional, C++ says that strchr etc. is
const char *strchr (const char *, int);
char *strchr (char *, int);

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug libc/12622] Incorrect strchr/strrchr/strchrnul prototype
  2011-03-30 13:41 [Bug libc/12622] New: Incorrect strchr/strrchr/strchrnul prototype hjl.tools at gmail dot com
  2011-03-30 13:43 ` [Bug libc/12622] " jakub at redhat dot com
@ 2014-06-27 13:19 ` fweimer at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: fweimer at redhat dot com @ 2014-06-27 13:19 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=12622

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-06-27 13:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-30 13:41 [Bug libc/12622] New: Incorrect strchr/strrchr/strchrnul prototype hjl.tools at gmail dot com
2011-03-30 13:43 ` [Bug libc/12622] " jakub at redhat dot com
2014-06-27 13:19 ` fweimer at redhat dot com

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).