commit e3e3f655ee7dcde7e1540612b12382851570d4b6
parent 3129ff687ab6660214656d762eec81c41edeea00
Author: Benno Schulenberg <bensberg@justemail.net>
Date: Fri, 27 May 2016 21:48:38 +0200
tweaks: use an available macro to silence a compiler warning
Diffstat:
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/src/nano.c b/src/nano.c
@@ -696,11 +696,9 @@ void die_save_file(const char *die_filename
* but don't worry if it fails because we're supposed to be bailing as
* fast as possible. */
if (die_stat) {
- int shush;
- shush = chmod(targetname, die_stat->st_mode);
- shush = chown(targetname, die_stat->st_uid, die_stat->st_gid);
- if (shush)
- ;
+ IGNORE_CALL_RESULT(chmod(targetname, die_stat->st_mode));
+ IGNORE_CALL_RESULT(chown(targetname, die_stat->st_uid,
+ die_stat->st_gid));
}
#endif