summary refs log tree commit diff
path: root/io
diff options
context:
space:
mode:
Diffstat (limited to 'io')
-rw-r--r--io/Makefile5
-rw-r--r--io/fts.c4
-rw-r--r--io/getwd.c6
3 files changed, 7 insertions, 8 deletions
diff --git a/io/Makefile b/io/Makefile
index ca17832220..f1efd21e87 100644
--- a/io/Makefile
+++ b/io/Makefile
@@ -1,4 +1,4 @@
-# Copyright (C) 1992, 1993, 1994, 1995, 1996 Free Software Foundation, Inc.
+# Copyright (C) 1992, 93, 94, 95, 96, 97 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
@@ -55,4 +55,5 @@ tests		:= test-utime
 
 include ../Rules
 
-CFLAGS-fts.c = -Wno-write-strings
+CFLAGS-fts.c = -Wno-uninitialized
+CFLAGS-ftw.c = -Wno-uninitialized
diff --git a/io/fts.c b/io/fts.c
index ef0c7a3137..f283c17450 100644
--- a/io/fts.c
+++ b/io/fts.c
@@ -57,7 +57,7 @@ static char sccsid[] = "@(#)fts.c	8.2 (Berkeley) 1/2/94";
 #endif
 
 
-static FTSENT	*fts_alloc __P((FTS *, char *, int));
+static FTSENT	*fts_alloc __P((FTS *, const char *, int));
 static FTSENT	*fts_build __P((FTS *, int));
 static void	 fts_lfree __P((FTSENT *));
 static void	 fts_load __P((FTS *, FTSENT *));
@@ -886,7 +886,7 @@ fts_sort(sp, head, nitems)
 static FTSENT *
 fts_alloc(sp, name, namelen)
 	FTS *sp;
-	char *name;
+	const char *name;
 	register int namelen;
 {
 	register FTSENT *p;
diff --git a/io/getwd.c b/io/getwd.c
index 506aac8472..ae1724545e 100644
--- a/io/getwd.c
+++ b/io/getwd.c
@@ -1,5 +1,5 @@
 /* Obsolete function to get current working directory.
-   Copyright (C) 1991, 1992, 1996 Free Software Foundation, Inc.
+   Copyright (C) 1991, 1992, 1996, 1997 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
@@ -49,9 +49,7 @@ getwd (buf)
   /* This is completely unsafe.  Nobody can say how big the user
      provided buffer is.  Perhaps the application and the libc
      disagree about the value of PATH_MAX.  */
-  strcpy (buf, tmpbuf);
-
-  return buf;
+  return strcpy (buf, tmpbuf);
 }
 
 link_warning (getwd,