summaryrefslogtreecommitdiff
path: root/lib/ZLocations.c
diff options
context:
space:
mode:
authorGravatar John Kohl <jtkohl@mit.edu>1988-06-23 06:28:56 +0000
committerGravatar John Kohl <jtkohl@mit.edu>1988-06-23 06:28:56 +0000
commit76a56cff9767ccf9d1e579e808247ef3ad1f5282 (patch)
tree15a05e875c5e43bf2a739d1f9b15ed3b71c3bb77 /lib/ZLocations.c
parent0a9847711808fbd565b2d1db75525de6e606063f (diff)
lint fixes
Diffstat (limited to 'lib/ZLocations.c')
-rw-r--r--lib/ZLocations.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ZLocations.c b/lib/ZLocations.c
index ebb5081..40ebcf9 100644
--- a/lib/ZLocations.c
+++ b/lib/ZLocations.c
@@ -26,7 +26,7 @@ static char rcsid_ZLocations_c[] = "$Header$";
#include <sys/param.h>
#include <netdb.h>
-uid_t getuid();
+extern char *getenv();
Code_t ZSetLocation(exposure)
char *exposure;
@@ -86,8 +86,8 @@ Z_SendLocation(class, opcode, auth, format)
bptr[1] = ctime(&ourtime);
bptr[1][strlen(bptr[1])-1] = '\0';
- if ((display = (char *)getenv("DISPLAY")) && *display) {
- strcpy(mytty, display);
+ if ((display = getenv("DISPLAY")) && *display) {
+ (void) strcpy(mytty, display);
bptr[2] = mytty;
}
else {