summaryrefslogtreecommitdiffstats
path: root/disk-utils/fsck.c
diff options
context:
space:
mode:
Diffstat (limited to 'disk-utils/fsck.c')
-rw-r--r--disk-utils/fsck.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/disk-utils/fsck.c b/disk-utils/fsck.c
index 57e0758..c63ce1c 100644
--- a/disk-utils/fsck.c
+++ b/disk-utils/fsck.c
@@ -594,7 +594,7 @@ static int progress_active(void)
*/
static void print_stats(struct fsck_instance *inst)
{
- struct timeval delta;
+ struct timeval delta = { 0 };
if (!inst || !report_stats || noexecute)
return;
@@ -1416,11 +1416,11 @@ static void __attribute__((__noreturn__)) usage(void)
fputs(_(" -V explain what is being done\n"), out);
fputs(USAGE_SEPARATOR, out);
- printf( " -?, --help %s\n", USAGE_OPTSTR_HELP);
- printf( " --version %s\n", USAGE_OPTSTR_VERSION);
+ fprintf(out, " -?, --help %s\n", USAGE_OPTSTR_HELP);
+ fprintf(out, " --version %s\n", USAGE_OPTSTR_VERSION);
fputs(USAGE_SEPARATOR, out);
fputs(_("See the specific fsck.* commands for available fs-options."), out);
- printf(USAGE_MAN_TAIL("fsck(8)"));
+ fprintf(out, USAGE_MAN_TAIL("fsck(8)"));
exit(FSCK_EX_OK);
}