diff options
Diffstat (limited to 'lib/ZLocations.c')
-rw-r--r-- | lib/ZLocations.c | 6 |
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 { |