[vhffs-dev] [935] repeat after me "always compile the code before commiting, it may not compile" |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
Revision: 935
Author: gradator
Date: 2007-09-21 12:33:55 +0000 (Fri, 21 Sep 2007)
Log Message:
-----------
repeat after me "always compile the code before commiting, it may not compile"
Modified Paths:
--------------
trunk/vhffs-fs/configure.ac
trunk/vhffs-fs/vhffsfs.c
Modified: trunk/vhffs-fs/configure.ac
===================================================================
--- trunk/vhffs-fs/configure.ac 2007-09-21 12:20:48 UTC (rev 934)
+++ trunk/vhffs-fs/configure.ac 2007-09-21 12:33:55 UTC (rev 935)
@@ -70,7 +70,7 @@
fi
if test "$enable_checkquota_cache" = yes ; then
AC_DEFINE([WITH_CHECKQUOTA_CACHE], [1], [Enable quota cache])
- if test "$check-quota-cache-debug" = yes ; then
+ if test "$enable_checkquota_cache_debug" = yes ; then
AC_DEFINE([WITH_CHECKQUOTA_CACHE_DEBUG], [1], [Enable quota cache debugging])
fi
AC_ARG_WITH([check-quota-cache-timeout],
Modified: trunk/vhffs-fs/vhffsfs.c
===================================================================
--- trunk/vhffs-fs/vhffsfs.c 2007-09-21 12:20:48 UTC (rev 934)
+++ trunk/vhffs-fs/vhffsfs.c 2007-09-21 12:33:55 UTC (rev 935)
@@ -942,14 +942,14 @@
free(dq);
return NULL;
}
- dq.dqb_curspace >>= 10;
+ dq->dqb_curspace >>= 10;
return dq;
}
#ifdef WITH_CHECKQUOTA_RPC
/* return an allocated dqblk struct or NULL if something failed (errno is set) */
-int vhffsfs_checkquotagid_rpc(char *rpcserver, char *path, int gid) {
+struct dqblk *vhffsfs_checkquotagid_rpc(char *rpcserver, char *path, int gid) {
CLIENT *clnt;
struct dqblk *dq;
@@ -1076,7 +1076,7 @@
return 0;
}
- if(dq.dqb_curspace > dq.dqb_bhardlimit || dq.dqb_curinodes > dq.dqb_ihardlimit) return 1;
+ if(dq->dqb_curspace > dq->dqb_bhardlimit || dq->dqb_curinodes > dq->dqb_ihardlimit) return 1;
return 0;
}
#endif