Fixes 'bmon -i dummy:randomize' SIGSEGV

Reverse 'value' and 'type' parameters order in dummy_parse_opt()
function.
This commit is contained in:
Žilvinas Valinskas 2014-05-01 00:32:22 +03:00
parent efa145200c
commit aa1542cd98

View File

@ -171,7 +171,7 @@ static void print_help(void)
" TX-bytes := TX-packets * (Rand() %% mtu)\n"); " TX-bytes := TX-packets * (Rand() %% mtu)\n");
} }
static void dummy_parse_opt(const char *value, const char *type) static void dummy_parse_opt(const char *type, const char *value)
{ {
if (!strcasecmp(type, "rxb") && value) if (!strcasecmp(type, "rxb") && value)
c_rx_b_inc = strtol(value, NULL, 0); c_rx_b_inc = strtol(value, NULL, 0);