]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/enumerate.c
/tmp/log
[netatalk.git] / etc / afpd / enumerate.c
index 3e6eb96edc5ea9e19ddb7d95c015e5e37d390d18..cc3473fabcf631988b5d27b5d4767c9b36c533c0 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: enumerate.c,v 1.29 2003-01-07 22:13:39 didg Exp $
+ * $Id: enumerate.c,v 1.30 2003-01-12 14:39:59 didg Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
@@ -244,7 +244,7 @@ int     ext;
     memcpy( &vid, ibuf, sizeof( vid ));
     ibuf += sizeof( vid );
 
-    if (( vol = getvolbyvid( vid )) == NULL ) {
+    if (NULL == ( vol = getvolbyvid( vid )) ) {
         *rbuflen = 0;
         return( AFPERR_PARAM );
     }
@@ -252,7 +252,7 @@ int     ext;
     memcpy( &did, ibuf, sizeof( did ));
     ibuf += sizeof( did );
 
-    if (( dir = dirlookup( vol, did )) == NULL ) {
+    if (NULL == ( dir = dirlookup( vol, did )) ) {
         *rbuflen = 0;
         return( AFPERR_NODIR );
     }
@@ -310,7 +310,7 @@ int     ext;
     
     maxsz = min(maxsz, *rbuflen);
 
-    if (( o_path = cname( vol, dir, &ibuf )) == NULL) {
+    if (NULL == ( o_path = cname( vol, dir, &ibuf )) ) {
         *rbuflen = 0;
         return( AFPERR_NODIR );
     }