yk_errno = 0;
if (argc == 2 && strcmp (argv[1], "-h") == 0) {
- fprintf(stderr, usage);
+ fputs(usage, stderr);
goto err;
}
else {
fprintf(stderr, "Unknown option '%s'\n",
optarg);
- fprintf(stderr, usage);
+ fputs(usage, stderr);
exit_code = 1;
goto err;
}
break;
case 'h':
default:
- fprintf(stderr, usage);
+ fputs(usage, stderr);
exit_code = 0;
goto err;
}
fprintf(stderr, "\nCommit? (y/n) [n]: ");
if (autocommit) {
strcpy(commitbuf, "yes");
- printf(commitbuf);
+ puts(commitbuf);
} else {
fgets(commitbuf, sizeof(commitbuf), stdin);
}