if (rv != APR_SUCCESS && rv != APR_INCOMPLETE)
break;
- if (finfo.valid & APR_FINFO_NAME == 0) {
+ if ((finfo.valid & APR_FINFO_NAME) == 0) {
ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r,
"Cannot get entry name in \"%s\"", path);
goto out;
!strncmp(finfo.name, DAV_FS_TMP_PREFIX, strlen(DAV_FS_TMP_PREFIX)))
continue;
- if (finfo.valid & APR_FINFO_TYPE == 0) {
+ if ((finfo.valid & APR_FINFO_TYPE) == 0) {
ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r,
"Cannot get entry type in \"%s\"", path);
goto out;
switch (finfo.filetype) {
case APR_REG:
- if (finfo.valid & APR_FINFO_SIZE == 0) {
+ if ((finfo.valid & APR_FINFO_SIZE) == 0) {
ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r,
"Cannot get entry size in \"%s\"", path);
goto out;
break;
case APR_DIR:
- if (finfo.valid & APR_FINFO_NAME == 0) {
+ if ((finfo.valid & APR_FINFO_NAME) == 0) {
ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r,
"Cannot get entry name in \"%s\"", path);
goto out;
rv = get_dir_used_bytes_walk(r, path, &used_bytes);
-out:
return (rv == APR_SUCCESS) ? used_bytes : DAV_FS_BYTES_ERROR;
}
used_bytes = (f.f_blocks - f.f_bfree) * f.f_bsize;
#endif
-#endif
out:
+#endif
return used_bytes;
}
#else
available_bytes = f.f_bavail * f.f_bsize;
#endif
-#endif
out:
+#endif
return available_bytes;
}
const apr_xml_doc *doc, dav_error **err)
{
apr_off_t quota;
- apr_off_t used_bytes;
apr_off_t available_bytes;
apr_off_t size;
const char *path;
const char *lenhdr;
const char *tag;
const char *msg;
- apr_status_t rv;
int status = DECLINED;
int fs_low;