]> arthur.barton.de Git - netatalk.git/commitdiff
AFS compilation fixes from Sam Noble.
authordidg <didg>
Wed, 11 Feb 2004 06:27:25 +0000 (06:27 +0000)
committerdidg <didg>
Wed, 11 Feb 2004 06:27:25 +0000 (06:27 +0000)
etc/afpd/afs.c
etc/afpd/unix.c

index 69618382fa5c43fd64f7593d44dc48f7b2b7f6d3..c4d8f07b6ebe0f1d3be44cd21656d1900ad99688 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: afs.c,v 1.16 2003-03-15 01:34:35 didg Exp $
+ * $Id: afs.c,v 1.16.6.1 2004-02-11 06:27:25 didg Exp $
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
  */
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif /* HAVE_UNISTD_H */
+#include <sys/stat.h>
 
 #include "globals.h"
 #include "directory.h"
 #include "volume.h"
 #include "misc.h"
+#include "unix.h"
 
-afs_getvolspace( vol, bfree, btotal, bsize )
+int afs_getvolspace( vol, bfree, btotal, bsize )
 struct vol     *vol;
 VolSpace       *bfree, *btotal;
 u_int32_t   *bsize;
@@ -48,6 +50,9 @@ u_int32_t   *bsize;
 
     if ( vs->PartBlocksAvail > 0 ) {
         if ( vs->MaxQuota != 0 ) {
+#ifdef min
+#undef min
+#endif
 #define min(x,y)       (((x)<(y))?(x):(y))
             free = min( vs->MaxQuota - vs->BlocksInUse, vs->PartBlocksAvail );
         } else {
@@ -70,7 +75,7 @@ u_int32_t   *bsize;
     return( AFP_OK );
 }
 
-afp_getdiracl(obj, ibuf, ibuflen, rbuf, rbuflen )
+int afp_getdiracl(obj, ibuf, ibuflen, rbuf, rbuflen )
 AFPObj      *obj;
 char   *ibuf, *rbuf;
 int            ibuflen, *rbuflen;
@@ -127,7 +132,7 @@ int         ibuflen, *rbuflen;
     #undef accessmode
 #endif
 
-afsmode( path, ma, dir, st )
+void afsmode( path, ma, dir, st )
 char           *path;
 struct maccess *ma;
 struct dir      *dir;
@@ -151,7 +156,7 @@ struct stat     *st;
         return;
     }
 
-    accessmode( path, &ma, dir, st );
+    accessmode( path, ma, dir, st );
 
     return;
 }
@@ -160,7 +165,7 @@ extern struct dir   *curdir;
 /*
  * cmd | 0 | vid | did | pathtype | pathname | 0 | acl
  */
-afp_setdiracl(obj, ibuf, ibuflen, rbuf, rbuflen )
+int afp_setdiracl(obj, ibuf, ibuflen, rbuf, rbuflen )
 AFPObj      *obj;
 char   *ibuf, *rbuf;
 int            ibuflen, *rbuflen;
@@ -230,7 +235,7 @@ int         ibuflen, *rbuflen;
 extern C_Block         seskey;
 extern Key_schedule    seskeysched;
 
-afp_afschangepw(obj, ibuf, ibuflen, rbuf, rbuflen )
+int afp_afschangepw(obj, ibuf, ibuflen, rbuf, rbuflen )
 AFPObj      *obj;
 char   *ibuf, *rbuf;
 int            ibuflen, *rbuflen;
index f7f9194cf3767070574e48458e2d5e9f3c81b9b2..1a63214f8b097f3974d3f56fb1551fcc31d40166 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: unix.c,v 1.43.2.1.2.1 2003-10-30 05:57:44 bfernhomberg Exp $
+ * $Id: unix.c,v 1.43.2.1.2.2 2004-02-11 06:27:25 didg Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
@@ -160,6 +160,9 @@ mode_t mode;
 }
 
 
+#ifdef accessmode
+#undef accessmode
+#endif
 /*
  * Calculate the mode for a directory using a stat() call to
  * estimate permission.