]> andersk Git - moira.git/commitdiff
#include file and prototype fixes
authordanw <danw>
Wed, 29 Jan 1997 23:13:53 +0000 (23:13 +0000)
committerdanw <danw>
Wed, 29 Jan 1997 23:13:53 +0000 (23:13 +0000)
dcm/dcm.c
dcm/startdcm.c
dcm/utils.c

index 81ff34ad2367670669ecf2af8d7bfe8def2f76e5..5a2d32a238f883abeeab851f734cdb909ab617c6 100644 (file)
--- a/dcm/dcm.c
+++ b/dcm/dcm.c
@@ -15,11 +15,13 @@ static char rcsid_dcm_c[] = "$Header$";
 #endif lint
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <update.h>
 #include <sys/file.h>
 #include <sys/time.h>
 #include <sys/wait.h>
 #include <sys/stat.h>
+#include <time.h>
 #include <fcntl.h>
 #include <signal.h>
 #include <ctype.h>
@@ -28,14 +30,10 @@ static char rcsid_dcm_c[] = "$Header$";
 #include "dcm.h"
 #include "mit-copyright.h"
 #include <unistd.h>
+#include <com_err.h>
 
-extern char *ctime();
-extern char *getenv();
-extern int log_flags;
-extern char *error_message();
-char *itoa();
+extern int log_flags, errno;
 int gqval();
-long time();
 
 
 /* declared global so that we can get the current time from different places. */
index 0f31bcfb3c5d3454dee0c664f44978bc568401bf..be1ac35d97180c14007a6aaf84c880d93cebc3dd 100644 (file)
@@ -16,8 +16,9 @@ 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>
@@ -26,13 +27,14 @@ static char *rcsid_mr_starter_c = "$Header$";
 #include <fcntl.h>
 #include <sys/resource.h>
 #include <moira_site.h>
+#include <time.h>
 
 #define PROG   "dcm"
 
 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;
index 6db3e19459eb9b4f983f78d2333408f32cc4cfa8..e6c6dd9359a5e611abd1d02bcc1129b6bc1a03a1 100644 (file)
@@ -17,7 +17,7 @@ static char *rcsid_utils_c = "$Header$";
 
 #include <mit-copyright.h>
 #include <stdio.h>
-#include <strings.h>
+#include <string.h>
 #include <errno.h>
 #include <varargs.h>
 #include <sys/types.h>
This page took 0.077079 seconds and 5 git commands to generate.