summaryrefslogtreecommitdiffstats
path: root/login-utils
diff options
context:
space:
mode:
authorRuediger Meier2016-03-12 23:55:48 +0100
committerRuediger Meier2016-03-13 21:47:27 +0100
commit58c87bd045dfa5f924f25cd59577b36baf7817ff (patch)
tree1f31a83c298514bdc8d0e3c05f58cee83f9c78cd /login-utils
parentmisc: fix printf i386 compiler warnings (diff)
downloadkernel-qcow2-util-linux-58c87bd045dfa5f924f25cd59577b36baf7817ff.tar.gz
kernel-qcow2-util-linux-58c87bd045dfa5f924f25cd59577b36baf7817ff.tar.xz
kernel-qcow2-util-linux-58c87bd045dfa5f924f25cd59577b36baf7817ff.zip
misc: fix icc/clang compiler warnings
clang warning: libmount/src/tab.c:1833:6: warning: variable 'rc' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] if (!mpc) ^~~~ icc printf warnings: libmount/src/monitor.c(348): warning #2279: printf/scanf format not a string literal and no format arguments DBG(MONITOR, ul_debugobj(mn, status == 1 ? " success" : " nothing")); ^ login-utils/vipw.c(348): warning #2279: printf/scanf format not a string literal and no format arguments : _("You are using shadow passwords on this system.\n")); ^ icc enum warnings: disk-utils/fdisk-menu.c(150): warning #188: enumerated type mixed with another type .exclude = FDISK_DISKLABEL_GPT | FDISK_DISKLABEL_BSD, ^ libsmartcols/src/table_print.c(750): warning #188: enumerated type mixed with another type &width, align, ^ Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'login-utils')
-rw-r--r--login-utils/vipw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/login-utils/vipw.c b/login-utils/vipw.c
index bb4a8baac..066fee005 100644
--- a/login-utils/vipw.c
+++ b/login-utils/vipw.c
@@ -343,7 +343,7 @@ int main(int argc, char *argv[])
if (access(orig_file, F_OK) == 0) {
char response[80];
- printf((program == VIGR)
+ printf("%s", (program == VIGR)
? _("You are using shadow groups on this system.\n")
: _("You are using shadow passwords on this system.\n"));
/* TRANSLATORS: this program uses for y and n rpmatch(3),