From 21cfbcc491bca0026075fdf1ab2af6e3ee1255d4 Mon Sep 17 00:00:00 2001 From: Erik de Castro Lopo Date: Mon, 23 Jun 2014 17:11:39 +1000 Subject: [PATCH] programs/sndfile-metadata-*.c : Minor cleanup. Patch-from: Jan Stary --- programs/sndfile-metadata-get.c | 9 ++++++--- programs/sndfile-metadata-set.c | 6 +++--- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/programs/sndfile-metadata-get.c b/programs/sndfile-metadata-get.c index b4aa9b60..667f90af 100644 --- a/programs/sndfile-metadata-get.c +++ b/programs/sndfile-metadata-get.c @@ -1,5 +1,5 @@ /* -** Copyright (C) 2008-2012 Erik de Castro Lopo +** Copyright (C) 2008-2014 Erik de Castro Lopo ** Copyright (C) 2008-2010 George Blood Audio ** ** All rights reserved. @@ -77,7 +77,6 @@ main (int argc, char *argv []) exit (1) ; } ; - /* Get the time in case we need it later. */ memset (&sfinfo, 0, sizeof (sfinfo)) ; if ((file = sf_open (filename, SFM_READ, &sfinfo)) == NULL) { printf ("Error : Open of file '%s' failed : %s\n\n", filename, sf_strerror (file)) ; @@ -102,9 +101,13 @@ static void usage_exit (const char *progname, int exit_code) { printf ("\nUsage :\n %s [options] \n\nOptions:\n", progname) ; + puts ( + " --all Print all metadata.\n" + ) ; + puts ( " --bext-description Print the 'bext' description.\n" - " --bext-originator Print the 'bext; originator info.\n" + " --bext-originator Print the 'bext' originator info.\n" " --bext-orig-ref Print the 'bext' origination reference.\n" " --bext-umid Print the 'bext' UMID.\n" " --bext-orig-date Print the 'bext' origination date.\n" diff --git a/programs/sndfile-metadata-set.c b/programs/sndfile-metadata-set.c index b1d021a8..20256384 100644 --- a/programs/sndfile-metadata-set.c +++ b/programs/sndfile-metadata-set.c @@ -1,5 +1,5 @@ /* -** Copyright (C) 2008-2012 Erik de Castro Lopo +** Copyright (C) 2008-2014 Erik de Castro Lopo ** Copyright (C) 2008-2010 George Blood Audio ** ** All rights reserved. @@ -66,7 +66,7 @@ main (int argc, char *argv []) if (argc < 3 || strcmp (argv [1], "--help") == 0 || strcmp (argv [1], "-h") == 0) usage_exit (progname, 0) ; - /* Clear set all fields of the struct to zero bytes. */ + /* Set all fields of the struct to zero bytes. */ memset (&info, 0, sizeof (info)) ; /* Get the time in case we need it later. */ @@ -208,7 +208,7 @@ usage_exit (const char *progname, int exit_code) " --bext-orig-date Set the 'bext' origination date.\n" " --bext-orig-time Set the 'bext' origination time.\n" " --bext-coding-hist Set the 'bext' coding history.\n" - " --bext-time-raf Set the 'bext' Time ref.\n" + " --bext-time-ref Set the 'bext' Time ref.\n" "\n" " --str-comment Set the metadata comment.\n" " --str-title Set the metadata title.\n"