]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
.
authorJim Meyering <jim@meyering.net>
Fri, 13 May 1994 13:57:20 +0000 (13:57 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 13 May 1994 13:57:20 +0000 (13:57 +0000)
src/pathchk.c
src/who.c

index b509102adc96b9c88ec3ec751ef45477bd05424c..76a3401a4083af19edcf4d0dd1672e58321df6d8 100644 (file)
@@ -274,6 +274,11 @@ validate_path (path, portability)
   if (*path == '\0')
     return 0;
 
+#ifdef lint
+  /* Suppress `used before initialized' warning.  */
+  exists = 0;
+#endif
+
   /* Figure out the parent of the first element in PATH.  */
   parent = xstrdup (*path == '/' ? "/" : ".");
 
index b4feab53cb205c6222b7c4d64fd0d9f91e0fa4eb..d28d3733ab9595bdde7e222a3b667b3a1c74eec2 100644 (file)
--- a/src/who.c
+++ b/src/who.c
@@ -97,7 +97,7 @@
 char *xmalloc ();
 void error ();
 char *ttyname ();
-char *gethostname ();
+int gethostname ();
 
 static int read_utmp ();
 #ifdef WHO