summaryrefslogtreecommitdiff
path: root/clients/zshutdown_notify
diff options
context:
space:
mode:
authorGravatar John Kohl <jtkohl@mit.edu>1988-06-23 09:45:23 +0000
committerGravatar John Kohl <jtkohl@mit.edu>1988-06-23 09:45:23 +0000
commitf1152651df2eb53f646f00c02fde121d9a8bf2df (patch)
tree16888954cc46be5ca96203e2c20ff826e5f3cb0e /clients/zshutdown_notify
parent25a1f6bb6d56eaa582de008fc9d5618a484cfc6f (diff)
lint fixes
Diffstat (limited to 'clients/zshutdown_notify')
-rw-r--r--clients/zshutdown_notify/zshutdown_notify.c11
1 files changed, 7 insertions, 4 deletions
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 <sys/socket.h>
#include <netdb.h>
#include <stdio.h>
+#include <string.h>
#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(&notice, sizeof(ZNotice_t));
+ bzero((char *)&notice, sizeof(ZNotice_t));
notice.z_kind = N_KIND;
notice.z_port = 0;