diff options
author | John Kohl <jtkohl@mit.edu> | 1988-06-23 09:32:04 +0000 |
---|---|---|
committer | John Kohl <jtkohl@mit.edu> | 1988-06-23 09:32:04 +0000 |
commit | d5955c713b54a35012a2de93bd5ed96a21342bd5 (patch) | |
tree | 9901d29b6c31156183d5b5ec1ef8012b2d609084 /clients/zlocate | |
parent | 1a79e10884a9bde1e4bd89fa30771c2109efee58 (diff) |
lint fixes
Diffstat (limited to 'clients/zlocate')
-rw-r--r-- | clients/zlocate/zlocate.c | 13 |
1 files changed, 7 insertions, 6 deletions
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 <zephyr/mit-copyright.h> #include <zephyr/zephyr.h> +#include <string.h> #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); |