Remove unnecessary variable ret

This commit is contained in:
wbaumann 2012-08-06 19:17:54 +00:00
parent 7565efc840
commit 7dc721a576
2 changed files with 5 additions and 2 deletions

View File

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


2012-08-06 Werner Baumann (werner.baumann@onlinehome.de)
* mount_davfs.c, write_mtab_entry:
Remove unnecessary variable ret.

2012-08-06 Werner Baumann (werner.baumann@onlinehome.de) 2012-08-06 Werner Baumann (werner.baumann@onlinehome.de)
* dav_fuse.c: * dav_fuse.c:
Fix integer format warnings. Fix integer format warnings.

View File

@ -1254,10 +1254,9 @@ write_mtab_entry(const dav_args *args)
} }


gain_privileges(args); gain_privileges(args);
int ret;
FILE *mtab = setmntent(_PATH_MOUNTED, "a"); FILE *mtab = setmntent(_PATH_MOUNTED, "a");
if (mtab) { if (mtab) {
ret = addmntent(mtab, &mntent); addmntent(mtab, &mntent);
endmntent(mtab); endmntent(mtab);
} else { } else {
error(0, 0, _("Warning: can't write entry into mtab, but will mount " error(0, 0, _("Warning: can't write entry into mtab, but will mount "