]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* misc/getauxval.c (__getauxval): Use unsigned long int.
authorRichard Henderson <rth@twiddle.net>
Mon, 21 May 2012 18:26:24 +0000 (11:26 -0700)
committerRichard Henderson <rth@twiddle.net>
Mon, 21 May 2012 18:27:04 +0000 (11:27 -0700)
        * misc/sys/auxv.h: Include <sys/cdefs.h>.
        (getauxval): Use unsigned long int.

ChangeLog
misc/getauxval.c
misc/sys/auxv.h

index 2e2beedd42e6a0d2aac761b4a20628ade85dfad9..0d43c48e3381d7f75305af1bcfedb53ec2da27bf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-05-21  Richard Henderson  <rth@twiddle.net>
+
+       * misc/getauxval.c (__getauxval): Use unsigned long int.
+       * misc/sys/auxv.h: Include <sys/cdefs.h>.
+       (getauxval): Use unsigned long int.
+
 2012-05-21  Roland McGrath  <roland@hack.frob.com>
 
        * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
index a3338eedd922cfcf013eab076a29896720f37fc4..bff456084e62d0d039360356dce14a08873cbb50 100644 (file)
@@ -19,8 +19,8 @@
 #include <ldsodefs.h>
 
 
-unsigned long
-__getauxval (unsigned long type)
+unsigned long int
+__getauxval (unsigned long int type)
 {
   ElfW(auxv_t) *p;
 
index a70fb37f8735181ba9dd33fbed9c418b36b12f77..34df04a6e2f98a70bb71cb77316fa759c3b2c690 100644 (file)
 #define _SYS_AUXV_H 1
 
 #include <elf.h>
+#include <sys/cdefs.h>
 #include <bits/hwcap.h>
 
 __BEGIN_DECLS
 
 /* Return the value associated with an Elf*_auxv_t type from the auxv list
-   passed to the program on startup.  If __type was not present in the auxv
+   passed to the program on startup.  If TYPE was not present in the auxv
    list, returns zero.  */
-extern unsigned long getauxval (unsigned long __type)
+extern unsigned long int getauxval (unsigned long int __type)
   __THROW __attribute_const__;
 
 __END_DECLS