Mercurial > hg > sidinfo
changeset 44:7b137e4e817c
Fix to match the changes in th_args API.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 22 Nov 2014 23:46:56 +0200 |
parents | b9b56b4b0592 |
children | ed8c803a948c |
files | sidinfo.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/sidinfo.c Wed Oct 01 09:18:19 2014 +0300 +++ b/sidinfo.c Sat Nov 22 23:46:56 2014 +0200 @@ -91,7 +91,7 @@ // Define option arguments -static optarg_t optList[] = +static const th_optarg_t optList[] = { { 0, '?', "help", "Show this help", OPT_NONE }, // { 1, 'v', "verbose", "Be more verbose", OPT_NONE }, @@ -102,7 +102,7 @@ { 4, 'x', "hex", "Use hexadecimal values", OPT_NONE }, }; -static const int optListN = (sizeof(optList) / sizeof(optList[0])); +static const int optListN = sizeof(optList) / sizeof(optList[0]); void argShowHelp(void) @@ -110,7 +110,7 @@ int index, n; th_print_banner(stdout, th_prog_name, "[options] <sid filename> [sid filename #2 ..]"); - th_args_help(stdout, optList, optListN); + th_args_help(stdout, optList, optListN, 0); printf( "\n" "Available fields:\n");