summaryrefslogtreecommitdiff
path: root/src/pinky.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2005-09-22 07:01:07 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2005-09-22 07:01:07 +0000
commit144c6536d076106b126049de9497bfc4982eca58 (patch)
tree925ee91cb550a9acf3964dd242908568754901f8 /src/pinky.c
parent3779124b3f08066c17effc0234aa8827523ac15a (diff)
downloadcoreutils-144c6536d076106b126049de9497bfc4982eca58.tar.xz
Include canon-host.h rather than declaring
canon_host ourselves.
Diffstat (limited to 'src/pinky.c')
-rw-r--r--src/pinky.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pinky.c b/src/pinky.c
index dc8e0f98b..d26697c9b 100644
--- a/src/pinky.c
+++ b/src/pinky.c
@@ -25,6 +25,7 @@
#include <sys/types.h>
#include "system.h"
+#include "canon-host.h"
#include "error.h"
#include "hard-locale.h"
#include "inttostr.h"
@@ -286,7 +287,6 @@ print_entry (const STRUCT_UTMP *utmp_ent)
#ifdef HAVE_UT_HOST
if (include_where && utmp_ent->ut_host[0])
{
- extern char *canon_host ();
char ut_host[sizeof (utmp_ent->ut_host) + 1];
char *host = NULL;
char *display = NULL;