]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
vipw: use puts() when formatting unnecessary
authorKarel Zak <kzak@redhat.com>
Mon, 14 Mar 2016 15:02:06 +0000 (16:02 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 14 Mar 2016 15:02:17 +0000 (16:02 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/vipw.c

index 066fee00529894220b5c7a1d83ccf2483cd5f7ce..b8e5b47c155e3a23af113dd1cc25921b597be277 100644 (file)
@@ -343,9 +343,10 @@ int main(int argc, char *argv[])
        if (access(orig_file, F_OK) == 0) {
                char response[80];
 
-               printf("%s", (program == VIGR)
+               puts((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),
                 * which means they can be translated. */
                printf(_("Would you like to edit %s now [y/n]? "), orig_file);