From f1152651df2eb53f646f00c02fde121d9a8bf2df Mon Sep 17 00:00:00 2001 From: John Kohl Date: Thu, 23 Jun 1988 09:45:23 +0000 Subject: lint fixes --- clients/zshutdown_notify/zshutdown_notify.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'clients/zshutdown_notify') diff --git a/clients/zshutdown_notify/zshutdown_notify.c b/clients/zshutdown_notify/zshutdown_notify.c index 10e89d7..85f884a 100644 --- a/clients/zshutdown_notify/zshutdown_notify.c +++ b/clients/zshutdown_notify/zshutdown_notify.c @@ -19,6 +19,7 @@ #include #include #include +#include #ifndef lint #ifndef SABER @@ -39,11 +40,12 @@ static char *rcsid_zshutdown_notify_c = "$Header$"; static char warning[] = "Please detach any filesystems you may have\nattached from this host!"; +/*ARGSUSED*/ main(argc,argv) int argc; char *argv[]; { - ZNotice_t notice, retnotice; + ZNotice_t notice; struct hostent *hp; int retval; char hostname[MAXHOSTNAMELEN]; @@ -64,7 +66,8 @@ main(argc,argv) exit(1); } - if ((hp = gethostbyname(hostname)) != NULL) strcpy(hostname, hp->h_name); + if ((hp = gethostbyname(hostname)) != NULL) + (void) strcpy(hostname, hp->h_name); ptr = message; @@ -74,11 +77,11 @@ main(argc,argv) if ((strlen(msgbuff) + (ptr - message)) > Z_MAXPKTLEN){ break; } - strcpy(ptr, msgbuff); + (void) strcpy(ptr, msgbuff); ptr += strlen(ptr); } - bzero(¬ice, sizeof(ZNotice_t)); + bzero((char *)¬ice, sizeof(ZNotice_t)); notice.z_kind = N_KIND; notice.z_port = 0; -- cgit v1.2.3