X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fslocal.c;h=80620a7a95f52878a9eebfad79d09148402d776b;hb=75e27e3157b8023906ac68ea43b47555ddf5cd51;hp=71e09ff15283d5534cd81f2eb482f4f9b84c9225;hpb=49e0326aeef4cdc75898bf3049bfa3c123688e0f;p=mmh diff --git a/uip/slocal.c b/uip/slocal.c index 71e09ff..80620a7 100644 --- a/uip/slocal.c +++ b/uip/slocal.c @@ -51,7 +51,9 @@ #include NDBM_HEADER #endif +#ifdef HAVE_GETUTXENT #include +#endif /* HAVE_GETUTXENT */ static struct swit switches[] = { #define ADDRSW 0 @@ -223,10 +225,10 @@ main (int argc, char **argv) snprintf (buf, sizeof(buf), "%s [switches] [address info sender]", invo_name); print_help (buf, switches, 0); - done (1); + done (0); case VERSIONSW: print_version(invo_name); - done (1); + done (0); case ADDRSW: if (!(addr = *argp++))/* allow -xyz arguments */ @@ -930,6 +932,7 @@ lookup (struct pair *pairs, char *key) static int logged_in (void) { +#if HAVE_GETUTXENT struct utmpx *utp; if (utmped) @@ -948,6 +951,7 @@ logged_in (void) } endutxent(); +#endif /* HAVE_GETUTXENT */ return (utmped = NOTOK); }