]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/afp_options.c
remove pre ansi declarations
[netatalk.git] / etc / afpd / afp_options.c
index f173d0169309e6e7c7529578c74d6c52b22a0051..d1e85bc51722a4b926da27946b938d0c5c33b671 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $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.
@@ -167,7 +167,7 @@ void afp_options_init(struct afp_options *options)
     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;
@@ -319,15 +319,16 @@ int afp_options_parseline(char *buf, struct afp_options *options)
     }
 
     /* -[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);
@@ -447,7 +448,7 @@ int afp_options_parseline(char *buf, struct afp_options *options)
  * 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 );
 
@@ -505,7 +506,7 @@ void show_version( )
  * Show extended version information about afpd and Netatalk.
  * Used by "afp -V".
  */
-void show_version_extended( )
+void show_version_extended(void )
 {
        show_version( );