public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* Patch for glibc 2.2
@ 2000-01-26  1:41 Andreas Jaeger
  0 siblings, 0 replies; only message in thread
From: Andreas Jaeger @ 2000-01-26  1:41 UTC (permalink / raw)
  To: GNU libc hacker

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-01-26  1:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-01-26  1:41 Patch for glibc 2.2 Andreas Jaeger

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