-/* 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.
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.
*/
}
/* Print the version. */
-void version()
+void version(void)
{
- fprintf(stderr, "afile " AFILE_VERSION " (netatalk " VERSION ")\n");
+ fprintf(stderr, "afile (netatalk " VERSION ")\n");
}
/* Argument Handling