]> arthur.barton.de Git - netatalk.git/blobdiff - libatalk/nbp/nbp_unrgstr.c
remove pre ansi declarations
[netatalk.git] / libatalk / nbp / nbp_unrgstr.c
index 49cf2ace772ff662371940224133a3aacbfc9ba8..9a2169b2041653c6920557338e699abd602452f0 100644 (file)
@@ -1,32 +1,40 @@
 /*
+ * $Id: nbp_unrgstr.c,v 1.5 2009-10-13 22:55:37 didg Exp $
+ *
  * Copyright (c) 1990,1997 Regents of The University of Michigan.
  * All Rights Reserved. See COPYRIGHT.
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif /* HAVE_CONFIG_H */
+
 #include <string.h>
+#include <errno.h>
+#include <signal.h>
+
 #include <sys/types.h>
 #include <sys/param.h>
 #include <sys/socket.h>
-#include <sys/signal.h>
 #include <sys/time.h>
-#include <errno.h>
+
 #include <netatalk/endian.h>
 #include <netatalk/at.h>
 #include <atalk/nbp.h>
 #include <atalk/netddp.h>
 #include <atalk/ddp.h>
 
+#ifdef HAVE_NETDB_H
 #include <netdb.h>
+#endif /* HAVE_NETDB_H */
 #include  "nbp_conf.h"
 
 /* FIXME/SOCKLEN_T: socklen_t is a unix98 feature. */
 #ifndef SOCKLEN_T
 #define SOCKLEN_T unsigned int
-#endif
+#endif /* ! SOCKLEN_T */
 
-int nbp_unrgstr( obj, type, zone, addr )
-    const char         *obj, *type, *zone;
-    const struct at_addr *addr;
+int nbp_unrgstr(const char *obj,const char *type,const char  *zone, const struct at_addr *addr)
 {
     struct sockaddr_at to;
     struct nbphdr      nh;
@@ -86,7 +94,7 @@ int nbp_unrgstr( obj, type, zone, addr )
       memcpy(&to.sat_addr, addr, sizeof(struct at_addr));
 #ifdef BSD4_4
     to.sat_len = sizeof( struct sockaddr_at );
-#endif BSD4_4
+#endif /* BSD4_4 */
 
     if ( nbp_port == 0 ) {
        if (( se = getservbyname( "nbp", "ddp" )) == NULL ) {