From 4b71e172a810a85b8ef8e1c6d205397ed5800226 Mon Sep 17 00:00:00 2001 From: simon75j Date: Sun, 13 Sep 2009 06:17:55 +0000 Subject: [PATCH] Fix warnings. Reported by Patrick Neave . git-svn-id: https://yubikey-personalization.googlecode.com/svn/trunk@190 b62f149e-849f-11dd-9899-c7ba65f7c4c7 --- ykpersonalize.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ykpersonalize.c b/ykpersonalize.c index e90075e..7100ea4 100644 --- a/ykpersonalize.c +++ b/ykpersonalize.c @@ -174,7 +174,7 @@ main(int argc, char **argv) yk_errno = 0; if (argc == 2 && strcmp (argv[1], "-h") == 0) { - fprintf(stderr, usage); + fputs(usage, stderr); goto err; } @@ -375,7 +375,7 @@ main(int argc, char **argv) else { fprintf(stderr, "Unknown option '%s'\n", optarg); - fprintf(stderr, usage); + fputs(usage, stderr); exit_code = 1; goto err; } @@ -388,7 +388,7 @@ main(int argc, char **argv) break; case 'h': default: - fprintf(stderr, usage); + fputs(usage, stderr); exit_code = 0; goto err; } @@ -456,7 +456,7 @@ main(int argc, char **argv) fprintf(stderr, "\nCommit? (y/n) [n]: "); if (autocommit) { strcpy(commitbuf, "yes"); - printf(commitbuf); + puts(commitbuf); } else { fgets(commitbuf, sizeof(commitbuf), stdin); } -- 2.39.5