summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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