# HG changeset patch # User Matti Hamalainen # Date 1416692816 -7200 # Node ID 7b137e4e817c197eb0b75af8434e1ae37367c692 # Parent b9b56b4b059215581200a2555c4b99495c7fc95f Fix to match the changes in th_args API. diff -r b9b56b4b0592 -r 7b137e4e817c sidinfo.c --- 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 #2 ..]"); - th_args_help(stdout, optList, optListN); + th_args_help(stdout, optList, optListN, 0); printf( "\n" "Available fields:\n");