From 7dc721a576678ea67378df59a9cb0379abf332b5 Mon Sep 17 00:00:00 2001 From: wbaumann Date: Mon, 6 Aug 2012 19:17:54 +0000 Subject: [PATCH] Remove unnecessary variable ret --- ChangeLog | 4 ++++ src/mount_davfs.c | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) 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 "