This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


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

One warning less - memchr



Hi Greg,

could you please check your builds that you don't introduce new
warnings into the code?

I've fixed the follwoing one now:
../sysdeps/generic/memchr.c:61: warning: function declaration isn't a prototype

The patch has been committed to CVS.

Andreas

2000-07-18  Andreas Jaeger  <aj@suse.de>

	* include/string.h: Add prototype for __memchr.


============================================================
Index: include/string.h
--- include/string.h	2000/06/23 02:04:57	1.11
+++ include/string.h	2000/07/18 13:59:24
@@ -31,6 +31,9 @@
 extern void *__memrchr (__const void *__s, int __c, size_t __n)
      __attribute_pure__;
 
+extern void *__memchr (__const void *__s, int __c, size_t __n)
+     __attribute_pure__;
+     
 /* Now the real definitions.  We do this here since some of the functions
    above are defined as macros in the headers.  */
 #include <string/string.h>

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.rhein-neckar.de

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