Gitweb: http://git.fedorahosted.org/git/?p=gfs2-utils.git;a=commitdiff;h=cb94e0a60bf... Commit: cb94e0a60bf8575d0f84fa2878192b2a761e0781 Parent: f81ece7e97b66d5d8c3639b2094a31723c2e427b Author: Andrew Price anprice@redhat.com AuthorDate: Mon Jul 15 14:04:13 2013 +0100 Committer: Andrew Price anprice@redhat.com CommitterDate: Thu Jul 18 10:08:42 2013 +0100
fsck.gfs2: Don't call gettext a second time in fsck_query()
The format string passed to fsck_query should have been passed through gettext already, so it makes no sense to do so again.
Signed-off-by: Andrew Price anprice@redhat.com --- gfs2/fsck/util.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/gfs2/fsck/util.c b/gfs2/fsck/util.c index fd1b292..a701d82 100644 --- a/gfs2/fsck/util.c +++ b/gfs2/fsck/util.c @@ -168,7 +168,6 @@ char generic_interrupt(const char *caller, const char *where, int fsck_query(const char *format, ...) { va_list args; - const char *transform; char response; int ret = 0;
@@ -184,8 +183,7 @@ int fsck_query(const char *format, ...) opts.query = TRUE; while (1) { va_start(args, format); - transform = _(format); - vprintf(transform, args); + vprintf(format, args); va_end(args);
/* Make sure query is printed out */