diff options
author | Greg Hudson <ghudson@mit.edu> | 1994-10-31 09:39:52 +0000 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 1994-10-31 09:39:52 +0000 |
commit | 64ad2c7b60de2b45591b80271f0e216c7252c685 (patch) | |
tree | 42d84ff212ef69240ddf443ff9a21af21a175557 /clients | |
parent | 2a54d7d8822e27fa78a6ad36075e223b3fa13302 (diff) |
Fixes for compilation without Hesiod, and a bugfix.
Diffstat (limited to 'clients')
-rw-r--r-- | clients/zmailnotify/zmailnotify.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clients/zmailnotify/zmailnotify.c b/clients/zmailnotify/zmailnotify.c index ba5f4bd..f398630 100644 --- a/clients/zmailnotify/zmailnotify.c +++ b/clients/zmailnotify/zmailnotify.c @@ -25,7 +25,9 @@ static char rcsid_zmailnotify_c[] = #include <pwd.h> #include <errno.h> #include <netdb.h> +#ifdef Z_HaveHesiod #include <hesiod.h> +#endif #include <string.h> #ifdef KPOP @@ -412,7 +414,7 @@ char *host; sp = getservbyname (svc_name, "tcp"); if (sp == 0) { - (void) sprintf (Errmsg, "%s/tcp: unknown service"); + (void) sprintf (Errmsg, "%s/tcp: unknown service", svc_name); return NOTOK; } sin.sin_family = hp->h_addrtype; |