From 8f5c0f66ca343ec4689470e5941aa3066ed062bb Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Tue, 8 Feb 2000 20:29:44 +0000 Subject: [PATCH] badblocks.c: Fix I18N compilation bug. --- misc/badblocks.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/misc/badblocks.c b/misc/badblocks.c index 6057115..1a47984 100644 --- a/misc/badblocks.c +++ b/misc/badblocks.c @@ -55,7 +55,7 @@ #include "nls-enable.h" const char * program_name = "badblocks"; -const char * done_string = _("done \n"); +const char * done_string = N_("done \n"); int v_flag = 0; /* verbose */ int w_flag = 0; /* do r/w test: 0=no, 1=yes, 2=non-destructive */ @@ -288,7 +288,7 @@ static unsigned int test_ro (int dev, unsigned long blocks_count, num_blocks = 0; alarm(0); if (s_flag || v_flag > 1) - fprintf(stderr, done_string); + fprintf(stderr, _(done_string)); fflush (stderr); free (blkbuf); @@ -348,7 +348,7 @@ static unsigned int test_rw (int dev, unsigned long blocks_count, num_blocks = 0; alarm (0); if (s_flag | v_flag) - fprintf(stderr, done_string); + fprintf(stderr, _(done_string)); flush_bufs (dev, 1); if (s_flag | v_flag) fprintf (stderr, _("Reading and comparing: ")); @@ -376,7 +376,7 @@ static unsigned int test_rw (int dev, unsigned long blocks_count, num_blocks = 0; alarm (0); if (s_flag | v_flag) - fprintf(stderr, done_string); + fprintf(stderr, _(done_string)); flush_bufs (dev, 0); } @@ -560,7 +560,7 @@ static unsigned int test_nd (int dev, unsigned long blocks_count, num_blocks = 0; alarm(0); if (s_flag || v_flag > 1) - fprintf(stderr, done_string); + fprintf(stderr, _(done_string)); } else { /* abnormal termination by a signal is handled here */ -- 1.8.3.1