]> arthur.barton.de Git - netatalk.git/blobdiff - libatalk/nbp/nbp_unrgstr.c
Remove bdb env on exit
[netatalk.git] / libatalk / nbp / nbp_unrgstr.c
index f7b0ccff95b5a1ce5f89f69b7769d1e24bcc2ef5..b16497dddcb19d8af761d75d3e52479f6984634c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: nbp_unrgstr.c,v 1.3 2001-06-29 14:14:46 rufustfirefly Exp $
+ * $Id: nbp_unrgstr.c,v 1.6 2009-10-14 02:24:05 didg Exp $
  *
  * Copyright (c) 1990,1997 Regents of The University of Michigan.
  * All Rights Reserved. See COPYRIGHT.
 #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>
@@ -32,9 +34,7 @@
 #define SOCKLEN_T unsigned int
 #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;
@@ -115,7 +115,7 @@ int nbp_unrgstr( obj, type, zone, addr )
     FD_SET( s, &readfd );
     timeout.tv_sec = 2;
     timeout.tv_usec = 0;
-    if (( cc = select( s + 1, &readfd, 0, 0, &timeout )) < 0 ) {
+    if (( cc = select( s + 1, &readfd, NULL, NULL, &timeout )) < 0 ) {
         goto unregister_err;
     }
     if ( cc == 0 ) {