#include "misc.h"
#include "unix.h"
-int afs_getvolspace( vol, bfree, btotal, bsize )
-struct vol *vol;
-VolSpace *bfree, *btotal;
-u_int32_t *bsize;
+int afs_getvolspace(struct vol *vol, VolSpace *bfree, VolSpace *btotal, u_int32_t *bsize)
{
struct ViceIoctl vi;
struct VolumeStatus *vs;
#undef accessmode
#endif
-void afsmode( vol, path, ma, dir, st )
-const struct volume *vol;
-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 ];
{
struct dsitem *ds;
size_t l, u;
+ struct dsitem *tmpds = NULL;
/* check if we have some space on stack... */
if (dsidx >= dssize) {
dssize += DS_BSIZE;
- dstack = realloc(dstack, dssize * sizeof(struct dsitem));
- if (dstack == NULL)
+ tmpds = realloc(dstack, dssize * sizeof(struct dsitem));
+ if (tmpds == NULL)
return -1;
+ dstack = tmpds;
}
/* Put new element. Allocate and copy lname and path. */