/*
+ * $Id: afp_options.c,v 1.7 2001-06-20 18:33:04 rufustfirefly Exp $
+ *
* Copyright (c) 1997 Adrian Sun (asun@zoology.washington.edu)
* Copyright (c) 1990,1993 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
#ifdef HAVE_CONFIG_H
#include "config.h"
-#endif
+#endif /* HAVE_CONFIG_H */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif /* HAVE_UNISTD_H */
#include <sys/param.h>
#include <sys/socket.h>
#include <syslog.h>
#include <netinet/in.h>
#include <arpa/inet.h>
+#ifdef HAVE_NETDB_H
#include <netdb.h>
+#endif /* HAVE_NETDB_H */
#include <atalk/paths.h>
#include <atalk/util.h>
#ifdef ADMIN_GRP
#include <grp.h>
#include <sys/types.h>
-#endif
+#endif /* ADMIN_GRP */
#ifndef MIN
#define MIN(a, b) ((a) < (b) ? (a) : (b))
-#endif
+#endif /* MIN */
#define OPTIONS "dn:f:s:uc:g:P:ptDS:TL:F:U:I"
#define LENGTH 512
options->authprintdir = NULL;
#ifdef ADMIN_GRP
options->admingid = 0;
-#endif ADMIN_GRP
+#endif /* ADMIN_GRP */
}
/* parse an afpd.conf line. i'm doing it this way because it's
options->admingid = gr->gr_gid;
}
}
-#endif
+#endif /* ADMIN_GRP */
if ((c = getoption(buf, "-authprintdir")) && (opt = strdup(c)))
options->authprintdir = opt;
#ifdef ultrix
openlog( p, LOG_PID );
-#else ultrix
+#else /* ultrix */
openlog( p, LOG_NDELAY|LOG_PID, LOG_DAEMON);
-#endif ultrix
+#endif /* ultrix */
return 1;
}