X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=etc%2Fafpd%2Fafs.c;h=f11d77eb22995a400ff43247cf7ddd4441babdbb;hb=be9876310c25cc3faaa72db9b12064a96a1caa70;hp=3b33c1ee3afabac3ca98d31131ed21282fa6acae;hpb=14874ef66d68c5200a9a42a7408d022d58211898;p=netatalk.git diff --git a/etc/afpd/afs.c b/etc/afpd/afs.c index 3b33c1ee..f11d77eb 100644 --- a/etc/afpd/afs.c +++ b/etc/afpd/afs.c @@ -29,10 +29,7 @@ #include "misc.h" #include "unix.h" -int afs_getvolspace( vol, bfree, btotal, bsize ) -struct vol *vol; -VolSpace *bfree, *btotal; -uint32_t *bsize; +int afs_getvolspace(struct vol *vol, VolSpace *bfree, VolSpace *btotal, uint32_t *bsize) { struct ViceIoctl vi; struct VolumeStatus *vs; @@ -129,11 +126,7 @@ int afp_getdiracl(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *r #undef accessmode #endif -void afsmode( path, ma, dir, st ) -char *path; -struct maccess *ma; -struct dir *dir; -struct stat *st; +void afsmode(const struct volume *vol, char *path, struct maccess *ma, struct dir *dir, struct stat *st) { struct ViceIoctl vi; char buf[ 1024 ]; @@ -153,7 +146,7 @@ struct stat *st; return; } - accessmode( path, ma, dir, st ); + accessmode(vol, path, ma, dir, st ); return; }