Fix compiler warnings

This commit is contained in:
wbaumann 2016-04-04 17:07:27 +00:00
parent 9b5ef1e835
commit 5a2e6a0daa
3 changed files with 7 additions and 2 deletions

View File

@ -1,6 +1,10 @@
ChangeLog for davfs2 ChangeLog for davfs2
-------------------- --------------------


2016-04-04 Werner Baumann (werner.baumann@onlinehome.de)
* cache.c, kernel_interface.c:
Fix compiler warnings.

2016-04-04 Werner Baumann (werner.baumann@onlinehome.de) 2016-04-04 Werner Baumann (werner.baumann@onlinehome.de)
* mount_davfs.c, parse_line: * mount_davfs.c, parse_line:
Fix stack smashing error. Fix stack smashing error.

View File

@ -800,7 +800,8 @@ dav_tidy_cache(void)
minimize_tree(root); minimize_tree(root);
if (debug) if (debug)
syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG),
"minimize_tree: %llu nodes remaining", fs_stat->n_nodes); "minimize_tree: %llu nodes remaining",
(unsigned long long int) fs_stat->n_nodes);
} }


if (item) if (item)

View File

@ -652,7 +652,7 @@ fuse_getattr(void)
syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " u=%u g=%u p=%u", syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " u=%u g=%u p=%u",
ih->uid, ih->gid, ih->pid); ih->uid, ih->gid, ih->pid);
syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " f=0x%x fh=%llu", syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_DEBUG), " f=0x%x fh=%llu",
in->getattr_flags, in->fh); in->getattr_flags, (unsigned long long int) in->fh);
} }


oh->error = dav_getattr((dav_node *) ((size_t) ih->nodeid), ih->uid); oh->error = dav_getattr((dav_node *) ((size_t) ih->nodeid), ih->uid);