Thanks to Elan Ruusamäe for the suggestion.
if (offset && !head) {
gchar *temp_dead = temp;
temp = g_strdup_printf ("%sRange: %" PRIu64 "-\r\n", temp, offset);
- fprintf (stderr, "%s", temp);
+ fputs (temp, stderr);
g_free (temp_dead);
}
const char *usage = "usage: test_cuesheet cuesheet_file lead_out_offset [ [ sample_rate ] cdda ]\n";
if(argc > 1 && 0 == strcmp(argv[1], "-h")) {
- printf("%s", usage);
+ puts(usage);
return 0;
}
if(argc < 3 || argc > 5) {
- fprintf(stderr, "%s", usage);
+ fputs(usage, stderr);
return 255;
}
if(0 == strcmp(argv[4], "cdda"))
is_cdda = true;
else {
- fprintf(stderr, "%s", usage);
+ fputs(usage, stderr);
return 255;
}
}
const char *usage = "usage: test_pictures path_prefix\n";
if(argc > 1 && 0 == strcmp(argv[1], "-h")) {
- printf("%s", usage);
+ puts(usage);
return 0;
}
if(argc != 2) {
- fprintf(stderr, "%s", usage);
+ fputs(usage, stderr);
return 255;
}
static const char * const usage = "usage: test_seeking file.flac [#seeks] [#samples-in-file.flac] [file.raw]\n";
if (argc < 2 || argc > 5) {
- fprintf(stderr, "%s", usage);
+ fputs(usage, stderr);
return 1;
}