From: Simon Josefsson Date: Sun, 13 Sep 2009 06:17:55 +0000 (+0000) Subject: Fix warnings. X-Git-Tag: yubikey-personalisation_1.3.5-1~4^2~63 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=550986986d17606aed9a3a0e750201938b86a9a4;p=yubikey-personalization Fix warnings. Reported by Patrick Neave . --- 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); }