]> arthur.barton.de Git - netatalk.git/blobdiff - bin/afile/afile.c
remove pre ansi declarations
[netatalk.git] / bin / afile / afile.c
index 72e5bd07ac464875ee6658c2f9ad56b6b0f6870b..4cf8a353515b257da01e288748f374b23286bc5f 100644 (file)
@@ -1,4 +1,7 @@
-/*  afile - determine the MacOS creator/type of files
+/*
+ * $Id: afile.c,v 1.6 2009-10-13 22:55:36 didg Exp $
+ *
+    afile - determine the MacOS creator/type of files
 
     Copyright (C) 2001 Sebastian Rittau.
     All rights reserved.
@@ -31,7 +34,9 @@
     SUCH DAMAGE.
 */
 
-#include <config.h>
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif /* HAVE_CONFIG_H */
 
 #include <stdio.h>
 #include <string.h>
 
 #include <sys/types.h>
 #include <sys/stat.h>
+#ifdef HAVE_UNISTD_H
 #include <unistd.h>
+#endif /* HAVE_UNISTD_H */
 
 #include <atalk/adouble.h>
 
 #include "common.h"
 
-/* Please change this whenever you change this file. */
-#define AFILE_VERSION "1.0.0"
-
 /* Possible return types. These are taken from the original afile for
  * compatibility.
  */
@@ -88,9 +92,9 @@ void help(char *prog)
 }
 
 /* Print the version. */
-void version()
+void version(void)
 {
-  fprintf(stderr, "afile " AFILE_VERSION " (netatalk " VERSION ")\n");
+  fprintf(stderr, "afile (netatalk " VERSION ")\n");
 }
 
 /* Argument Handling