projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88fc9ef
)
(print_entry): Use `#if', not `#ifdef HAVE_UT_HOST'.
author
Jim Meyering
<jim@meyering.net>
Sat, 24 Apr 1999 21:29:22 +0000
(21:29 +0000)
committer
Jim Meyering
<jim@meyering.net>
Sat, 24 Apr 1999 21:29:22 +0000
(21:29 +0000)
src/who.c
patch
|
blob
|
history
diff --git
a/src/who.c
b/src/who.c
index e5fd094efeb0f95527d46c023095557683a7a33b..b2a5995d9439ba547d6d563a268ce298b33d38eb 100644
(file)
--- a/
src/who.c
+++ b/
src/who.c
@@
-47,6
+47,7
@@
int gethostname ();
char *ttyname ();
+char *canon_host ();
/* The name this program was run with. */
char *program_name;
@@
-173,10
+174,9
@@
print_entry (const STRUCT_UTMP *utmp_ent)
else
printf (" . ");
}
-#if
def
HAVE_UT_HOST
+#if HAVE_UT_HOST
if (utmp_ent->ut_host[0] && do_lookup)
{
- extern char *canon_host ();
char ut_host[sizeof (utmp_ent->ut_host) + 1];
char *host = 0, *display = 0;