diff options
-rw-r--r-- | src/pathchk.c | 5 | ||||
-rw-r--r-- | src/who.c | 2 |
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 == '/' ? "/" : "."); @@ -97,7 +97,7 @@ char *xmalloc (); void error (); char *ttyname (); -char *gethostname (); +int gethostname (); static int read_utmp (); #ifdef WHO |