about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/init-first.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-06-18 18:06:00 +0000
committerUlrich Drepper <drepper@redhat.com>1999-06-18 18:06:00 +0000
commit8432c71ab7bacf17bbcefa3a9b9caadbfd1755e4 (patch)
treea640dfbd14d51787c30535ab3e631373535fe4b9 /sysdeps/unix/sysv/linux/init-first.h
parentdb95bdbce05c9876158e7b14ec6a827f7e2453d8 (diff)
downloadglibc-8432c71ab7bacf17bbcefa3a9b9caadbfd1755e4.tar.gz
glibc-8432c71ab7bacf17bbcefa3a9b9caadbfd1755e4.tar.xz
glibc-8432c71ab7bacf17bbcefa3a9b9caadbfd1755e4.zip
Update.
1999-06-18  Ulrich Drepper  <drepper@cygnus.com>

	* sysdeps/unix/sysv/linux/init-first.h: Add extra cast in argc
	assignment to avoid warning on 64bit platforms.
Diffstat (limited to 'sysdeps/unix/sysv/linux/init-first.h')
-rw-r--r--sysdeps/unix/sysv/linux/init-first.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/unix/sysv/linux/init-first.h b/sysdeps/unix/sysv/linux/init-first.h
index a9df8da52d..aaf8a4f4dc 100644
--- a/sysdeps/unix/sysv/linux/init-first.h
+++ b/sysdeps/unix/sysv/linux/init-first.h
@@ -1,5 +1,5 @@
 /* Prepare arguments for library initialization function.
-   Copyright (C) 1997 Free Software Foundation, Inc.
+   Copyright (C) 1997, 1999 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -35,13 +35,13 @@ void NAME (void *arg)							      \
 									      \
   if (!__libc_multiple_libcs)						      \
     {									      \
-      argc = (int) arg;							      \
+      argc = (int) (long int) arg;					      \
       argv = (char **) &arg + 1;					      \
       envp = &argv[argc+1];						      \
     }									      \
   else									      \
     {									      \
-      argc = (int) arg;							      \
+      argc = (int) (long int) arg;					      \
       argv = ((char ***) &arg)[1];					      \
       envp = ((char ***) &arg)[2];					      \
     }									      \