]> err.no Git - yubikey-personalization/commitdiff
Fix warnings.
authorSimon Josefsson <simon@josefsson.org>
Sun, 13 Sep 2009 06:17:55 +0000 (06:17 +0000)
committerSimon Josefsson <simon@josefsson.org>
Sun, 13 Sep 2009 06:17:55 +0000 (06:17 +0000)
Reported by Patrick Neave <p.neave@gmail.com>.

ykpersonalize.c

index e90075e93914a0aeded0216ccf3bdb26332155a9..7100ea49d7530ffff9264cc5de3231e9ea2ac559 100644 (file)
@@ -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);
                }