diff --git a/ChangeLog b/ChangeLog index cf884e0..b66addc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,10 @@ 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) * dav_fuse.c: Fix integer format warnings. diff --git a/src/mount_davfs.c b/src/mount_davfs.c index 56bdaf5..50d0db4 100644 --- a/src/mount_davfs.c +++ b/src/mount_davfs.c @@ -1254,10 +1254,9 @@ write_mtab_entry(const dav_args *args) } gain_privileges(args); - int ret; FILE *mtab = setmntent(_PATH_MOUNTED, "a"); if (mtab) { - ret = addmntent(mtab, &mntent); + addmntent(mtab, &mntent); endmntent(mtab); } else { error(0, 0, _("Warning: can't write entry into mtab, but will mount "