From 1f1464e90d694f7d618a7da8e9e8e48e35d47000 Mon Sep 17 00:00:00 2001 From: angt Date: Mon, 9 May 2016 14:23:17 +0000 Subject: [PATCH] Update mud --- mud | 2 +- src/main.c | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/mud b/mud index 244ad0f..de465a1 160000 --- a/mud +++ b/mud @@ -1 +1 @@ -Subproject commit 244ad0f714d35fb1c18a74b6906f6a2eeb342dbf +Subproject commit de465a17b6edf3c83515e3e46240cae1c487defc diff --git a/src/main.c b/src/main.c index 060bb92..2927bc3 100644 --- a/src/main.c +++ b/src/main.c @@ -236,9 +236,11 @@ int main (int argc, char **argv) gt_set_signal(); char *host = NULL; - char *port = "5000"; + long port = 5000; + char *bind_list = NULL; - char *bind_port = "5000"; + long bind_port = 5000; + char *dev = NULL; char *keyfile = NULL; char *statefile = NULL; @@ -252,9 +254,9 @@ int main (int argc, char **argv) struct option opts[] = { { "host", &host, option_str }, - { "port", &port, option_str }, + { "port", &port, option_long }, { "bind", &bind_list, option_str }, - { "bind-port", &bind_port, option_str }, + { "bind-port", &bind_port, option_long }, { "dev", &dev, option_str }, { "keyfile", &keyfile, option_str }, { "multiqueue", NULL, option_option },