/*
- * $Id: afp_options.c,v 1.43 2009-04-30 10:48:38 franklahm Exp $
+ * $Id: afp_options.c,v 1.46 2009-10-13 22:55:36 didg Exp $
*
* Copyright (c) 1997 Adrian Sun (asun@zoology.washington.edu)
* Copyright (c) 1990,1993 Regents of The University of Michigan.
options->uamlist = "uams_dhx.so,uams_dhx2.so";
options->guest = "nobody";
options->loginmesg = "";
- options->transports = AFPTRANS_ALL;
+ options->transports = AFPTRANS_TCP; /* TCP only */
options->passwdfile = _PATH_AFPDPWFILE;
options->tickleval = 30;
options->timeout = 4;
}
/* -[no]setuplog <logtype> <loglevel> [<filename>]*/
- char *optstr;
c = buf;
/* Now THIS is hokey! Multiple occurrences are not supported by our current code, */
/* so I have to loop myself. */
- while (NULL != (c = strstr(c, "-setuplog")))
+ while (NULL != (c = strstr(c, "-setuplog"))) {
+ char *optstr;
if ((optstr = getoption(c, "-setuplog"))) {
setuplog(optstr);
c += sizeof("-setuplog");
}
+ }
if ((c = getoption(buf, "-unsetuplog")))
unsetuplog(c);
* Show version information about afpd.
* Used by "afp -v".
*/
-void show_version( )
+void show_version( void )
{
printf( "afpd %s - Apple Filing Protocol (AFP) daemon of Netatalk\n\n", VERSION );
* Show extended version information about afpd and Netatalk.
* Used by "afp -V".
*/
-void show_version_extended( )
+void show_version_extended(void )
{
show_version( );