]> arthur.barton.de Git - netatalk.git/blobdiff - libatalk/nbp/nbp_rgstr.c
remove most sparse warning 'Using plain integer as NULL pointer'
[netatalk.git] / libatalk / nbp / nbp_rgstr.c
index cf5ee99927c673f93b2523cc429d750b44332565..d09e8669ebdd19fb95d263737bccf5d789c5a829 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: nbp_rgstr.c,v 1.5 2009-10-13 22:55:37 didg Exp $
+ * $Id: nbp_rgstr.c,v 1.6 2009-10-14 02:24:05 didg Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved. See COPYRIGHT.
@@ -119,7 +119,7 @@ int nbp_rgstr( struct sockaddr_at *sat, const char *obj, const char *type, const
     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 register_err;
     }
     if ( cc == 0 ) {