]> andersk Git - moira.git/commitdiff
random #include and prototype fixes
authordanw <danw>
Wed, 29 Jan 1997 23:25:28 +0000 (23:25 +0000)
committerdanw <danw>
Wed, 29 Jan 1997 23:25:28 +0000 (23:25 +0000)
reg_svr/reg_svr.c
reg_svr/reg_svr.h
reg_svr/requests.c
reg_svr/startreg.c

index 1bf8dd3f015ee2767ca0da3f28b288a330ca939c..e4d3d782ce28824105089dcf613e6c1725eece88 100644 (file)
@@ -21,7 +21,7 @@ static char *rcsid_reg_svr_c = "$Header$";
 
 #include <mit-copyright.h>
 #include <stdio.h>
-#include <strings.h>
+#include <string.h>
 #include <ctype.h>
 #include <sys/time.h>
 #include <sys/types.h>
index 23af2c54b2f8191af6579728e866a6731e724af5..b54bab0770acd70d811368b37d5fe7ff902346aa 100644 (file)
@@ -36,9 +36,6 @@
 #define LOGIN_LEN MAX_UNAME + 1        /* Leave room for a null */
 #define UID_LEN 7              /* Allow room for a 16 bit number */
 
-extern char *strdup();
-extern char *malloc();
-
 extern char *whoami;           /* Name of program - used by libraries */
 extern int errno;              /* Unix error number */
 
index d0559000c4d3ff5fe9e4bc06443e0f877bb4e254..e535804eb448430774a79a4398f83749ead509ae 100644 (file)
@@ -229,7 +229,7 @@ int format_pkt(packet, pktlenp, seqno, cl_status, message)
     {
        status = FAILURE;       /* Message was truncated */
        /* Truncate the message */
-       message[len-1] = NULL;
+       message[len-1] = '\0';
     }
 
     /* Copy the message into the packet */
index 2b620fccd08b8811ebae7d6b5973a8e62a16900d..5a9dfe89028ae5b75a837d9bb1647891dfec7d8f 100644 (file)
@@ -16,13 +16,15 @@ static char *rcsid_mr_starter_c = "$Header$";
 #endif lint
 
 #include <mit-copyright.h>
+#include <errno.h>
 #include <stdio.h>
-#include <strings.h>
+#include <string.h>
 #include <sys/types.h>
 #include <sys/file.h>
 #include <sys/wait.h>
 #include <sys/signal.h>
 #include <sys/ioctl.h>
+#include <time.h>
 #include <fcntl.h>
 #include <sys/resource.h>
 #include <moira_site.h>
@@ -32,7 +34,7 @@ static char *rcsid_mr_starter_c = "$Header$";
 int rdpipe[2];
 extern int errno;
 
-cleanup()
+void cleanup()
 {
        int stat, serrno = errno;
        char buf[BUFSIZ];
@@ -125,7 +127,6 @@ main(argc, argv)
        
        do {
                char *time_s;
-               extern char *ctime();
                long foo;
                
                done = 0;
This page took 0.041166 seconds and 5 git commands to generate.