]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - login-utils/newgrp.c
Make the ways of using output stream consistent in usage()
[thirdparty/util-linux.git] / login-utils / newgrp.c
index 2acbc9107e46a1c7c90297ecc833bb9e9f8c7446..e71a9e134b9550aff1295bc0e49b124dcf502c7f 100644 (file)
@@ -178,8 +178,8 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_("Log in to a new group.\n"), out);
 
        fputs(USAGE_OPTIONS, out);
-       printf(USAGE_HELP_OPTIONS(16));
-       printf(USAGE_MAN_TAIL("newgrp(1)"));
+       fprintf(out, USAGE_HELP_OPTIONS(16));
+       fprintf(out, USAGE_MAN_TAIL("newgrp(1)"));
        exit(EXIT_SUCCESS);
 }