]> andersk Git - moira.git/blobdiff - update/config.c
second code style cleanup: void/void * usage, proper #includes. try to
[moira.git] / update / config.c
index c76592c33c7d4d7abf3c54ebccf6d77c6b7ee2cf..0f7b35c18474c19d526a07f3237ac2abb3bd3728 100644 (file)
@@ -1,26 +1,29 @@
-/* $Header$
+/* $Id$
  *
  * Routines to handle configuration file for Moira's update_server.
  * These routines must load the file into memory rather than parse
  * it each time as one of the things the server may do is chroot()
  * itself.
  *
- * (c) Copyright 1992 by the Massachusetts Institute of Technology.
+ * Copyright (C) 1992-1998 by the Massachusetts Institute of Technology.
  * For copying and distribution information, please see the file
  * <mit-copyright.h>.
  */
 
 #include <mit-copyright.h>
+#include <moira.h>
+#include "update_server.h"
+
+#include <sys/stat.h>
+
+#include <ctype.h>
+#include <fcntl.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <ctype.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <sys/file.h>
-#include <fcntl.h>
-#include <moira.h>
+#include <unistd.h>
 
+RCSID("$Header$");
 
 #define CONFIG_FILE    "/etc/athena/moira.conf"
 
@@ -38,11 +41,11 @@ static char *config_buf = NULL;
 static char **config_keys, **config_values;
 
 
-static init()
+static int init(void)
 {
   int fd, count = 0;
   struct stat st;
-  char *p, *start;
+  char *p;
 
   /* Only execute once */
   if (config_buf)
This page took 0.149555 seconds and 4 git commands to generate.