Declare argument as pointer to const.
authorroland <roland>
Mon, 22 Jan 1996 19:04:37 +0000 (19:04 +0000)
committerroland <roland>
Mon, 22 Jan 1996 19:04:37 +0000 (19:04 +0000)
Include time.h, string.h.

misc/logwtmp.c

index 5b3c8de..7734ca9 100644 (file)
@@ -37,21 +37,20 @@ static char sccsid[] = "@(#)logwtmp.c       8.1 (Berkeley) 6/4/93";
 
 #include <sys/types.h>
 #include <sys/file.h>
-#include <sys/time.h>
 #include <sys/stat.h>
+#include <time.h>
+#include <string.h>
 
 #include <unistd.h>
 #include <utmp.h>
 
 void
 logwtmp(line, name, host)
-       char *line, *name, *host;
+     const char *line, *name, *host;
 {
        struct utmp ut;
        struct stat buf;
        int fd;
-       time_t time();
-       char *strncpy();
 
        if ((fd = open(_PATH_WTMP, O_WRONLY|O_APPEND, 0)) < 0)
                return;