Commit 5e579387 authored by Daniel Salzman's avatar Daniel Salzman
Browse files

knotc: set timeout type to int

parent c94c860a
......@@ -85,7 +85,7 @@ int main(int argc, char **argv)
params.socket = optarg;
break;
case 't':
if (knot_str2uint16t(optarg, &params.timeout) != KNOT_EOK) {
if (knot_str2int(optarg, &params.timeout) != KNOT_EOK) {
print_help();
return EXIT_FAILURE;
}
......
......@@ -33,7 +33,7 @@ typedef struct {
const char *confdb;
const char *socket;
bool verbose;
uint16_t timeout;
int timeout;
} params_t;
/*!
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment