This is the mail archive of the libc-hacker@sourceware.cygnus.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]

Patch for glibc 2.2



The appended patch avoids a warning when compiling with
ASSUME_STAT_64.

Andreas

2000-01-26  Andreas Jaeger  <aj@suse.de>

	* sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Avoid warning
	about unitialised variable kbuf.
	* sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
	* sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.

============================================================
Index: sysdeps/unix/sysv/linux/i386/lxstat.c
--- sysdeps/unix/sysv/linux/i386/lxstat.c	2000/01/26 03:13:00	1.2
+++ sysdeps/unix/sysv/linux/i386/lxstat.c	2000/01/26 08:54:26
@@ -47,7 +47,9 @@
 int
 __lxstat (int vers, const char *name, struct stat *buf)
 {
+#if __ASSUME_STAT64_SYSCALL == 0
   struct kernel_stat kbuf;
+#endif
   int result;
 
   if (vers == _STAT_VER_KERNEL)
============================================================
Index: sysdeps/unix/sysv/linux/i386/xstat.c
--- sysdeps/unix/sysv/linux/i386/xstat.c	2000/01/26 03:13:00	1.3
+++ sysdeps/unix/sysv/linux/i386/xstat.c	2000/01/26 08:54:27
@@ -47,7 +47,9 @@
 int
 __xstat (int vers, const char *name, struct stat *buf)
 {
+#if __ASSUME_STAT64_SYSCALL == 0
   struct kernel_stat kbuf;
+#endif
   int result;
 
   if (vers == _STAT_VER_KERNEL)
============================================================
Index: sysdeps/unix/sysv/linux/i386/fxstat.c
--- sysdeps/unix/sysv/linux/i386/fxstat.c	2000/01/26 03:13:00	1.3
+++ sysdeps/unix/sysv/linux/i386/fxstat.c	2000/01/26 08:54:27
@@ -46,7 +46,9 @@
 int
 __fxstat (int vers, int fd, struct stat *buf)
 {
+#if __ASSUME_STAT64_SYSCALL == 0
   struct kernel_stat kbuf;
+#endif
   int result;
 
   if (vers == _STAT_VER_KERNEL)

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