summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristophe Grenier <[email protected]>2013-11-01 12:19:53 +0100
committerChristophe Grenier <[email protected]>2013-11-01 12:19:53 +0100
commit9440623c9768c7e235be10ed595149fdb644a911 (patch)
tree324a9b9530d9895305ed278a41d37e8c2b138b46 /src
parente4ed9d6e9d7335281a956d07b49aca4fcd978ba6 (diff)
code style: ignore some function return value
Diffstat (limited to 'src')
-rw-r--r--src/hdaccess.c2
-rw-r--r--src/intrfn.c4
-rw-r--r--src/rfs_dir.c2
-rw-r--r--src/sudo.c2
4 files changed, 5 insertions, 5 deletions
diff --git a/src/hdaccess.c b/src/hdaccess.c
index e9df0455..2bf66e1e 100644
--- a/src/hdaccess.c
+++ b/src/hdaccess.c
@@ -1499,7 +1499,7 @@ disk_t *file_test_availability(const char *device, const int verbose, int testdi
By a bug in the Linux buffer cache, we will see the old
contents of /dev/hda when the change was made to /dev/hda3.
In order to avoid this, discard all blocks on /dev/hda. */
- ioctl(hd_h, BLKFLSBUF); /* ignore errors */
+ (void)ioctl(hd_h, BLKFLSBUF); /* ignore errors */
#endif
disk_get_model(hd_h, disk_car, verbose);
disk_get_hpa_dco(hd_h, disk_car);
diff --git a/src/intrfn.c b/src/intrfn.c
index 0947b144..9fc96b07 100644
--- a/src/intrfn.c
+++ b/src/intrfn.c
@@ -1078,7 +1078,7 @@ int start_ncurses(const char *prog_name, const char *real_prog_name)
log_critical("initscr() has failed. Exiting\n");
printf("initscr() has failed. Exiting\n");
printf("Press Enter key to quit.\n");
- getchar();
+ (void)getchar();
return 1;
}
#else
@@ -1126,7 +1126,7 @@ int start_ncurses(const char *prog_name, const char *real_prog_name)
#endif
printf("Extract all files and subdirectories before running the program.\n");
printf("Press Enter key to quit.\n");
- getchar();
+ (void)getchar();
free(terminfo);
return 1;
}
diff --git a/src/rfs_dir.c b/src/rfs_dir.c
index 52074375..923c95fd 100644
--- a/src/rfs_dir.c
+++ b/src/rfs_dir.c
@@ -539,7 +539,7 @@ static int reiser_copy(disk_t *disk_car, const partition_t *partition, dir_data_
reiserfs_file_close(in);
fclose(f_out);
set_date(new_file, file->td_atime, file->td_mtime);
- set_mode(new_file, file->st_mode);
+ (void)set_mode(new_file, file->st_mode);
free(new_file);
return error;
}
diff --git a/src/sudo.c b/src/sudo.c
index 26941f7a..5f346ba0 100644
--- a/src/sudo.c
+++ b/src/sudo.c
@@ -56,7 +56,7 @@ void run_sudo(int argc, char **argv)
{
printf("%s failed: %s\n", SUDO_BIN, strerror(errno));
printf("Press Enter key to quit.\n");
- getchar();
+ (void)getchar();
}
free(argv2[0]);
free(argv2);