From d5955c713b54a35012a2de93bd5ed96a21342bd5 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Thu, 23 Jun 1988 09:32:04 +0000 Subject: lint fixes --- clients/zlocate/zlocate.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'clients/zlocate') diff --git a/clients/zlocate/zlocate.c b/clients/zlocate/zlocate.c index 3e06dd6..342ed76 100644 --- a/clients/zlocate/zlocate.c +++ b/clients/zlocate/zlocate.c @@ -14,6 +14,7 @@ #include #include +#include #ifndef lint static char rcsid_zlocate_c[] = "$Header$"; @@ -47,13 +48,13 @@ main(argc,argv) ourargc = argc; for (;argc--;argv++) { - strcpy(user,*argv); + (void) strcpy(user,*argv); if (!index(user,'@')) { - strcat(user,"@"); - strcat(user,ZGetRealm()); + (void) strcat(user,"@"); + (void) strcat(user,ZGetRealm()); } if ((retval = ZLocateUser(user,&numlocs)) != ZERR_NONE) { - sprintf(bfr,"while locating user %s",user); + (void) sprintf(bfr,"while locating user %s",user); com_err(whoami,retval,bfr); continue; } @@ -82,7 +83,7 @@ main(argc,argv) } if (argc) printf("\n"); - ZFlushLocations(); + (void) ZFlushLocations(); } } @@ -93,7 +94,7 @@ print_pad(s,n) char bfr[81]; int num; - strcpy(bfr," "); + (void) strcpy(bfr," "); if (strlen(s) < n) num = n-strlen(s); -- cgit v1.2.3