summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1994-05-13 13:57:20 +0000
committerJim Meyering <jim@meyering.net>1994-05-13 13:57:20 +0000
commit323e95c8b38b10f06c3e44394abca87a84e03d28 (patch)
tree7555e23bf3ee1339764bb12aa7b11e8c32cc932b /src
parentaf6e86c53709b2823d46903f5c8d1e56e5bd714c (diff)
downloadcoreutils-323e95c8b38b10f06c3e44394abca87a84e03d28.tar.xz
.
Diffstat (limited to 'src')
-rw-r--r--src/pathchk.c5
-rw-r--r--src/who.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/src/pathchk.c b/src/pathchk.c
index b509102ad..76a3401a4 100644
--- a/src/pathchk.c
+++ b/src/pathchk.c
@@ -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 == '/' ? "/" : ".");
diff --git a/src/who.c b/src/who.c
index b4feab53c..d28d3733a 100644
--- 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