From: Michael Tremer Date: Mon, 25 Jan 2021 13:07:36 +0000 (+0000) Subject: Set default port to 5001 X-Git-Tag: 0.1.0~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2646bf3d69f48c7e0bc4870f0c5666294a66034;p=fireperf.git Set default port to 5001 Signed-off-by: Michael Tremer --- diff --git a/src/main.c b/src/main.c index 0cc8578..03ed2d1 100644 --- a/src/main.c +++ b/src/main.c @@ -87,7 +87,9 @@ static int parse_argv(int argc, char* argv[], struct fireperf_config* conf) { } int main(int argc, char* argv[]) { - struct fireperf_config conf; + struct fireperf_config conf = { + .port = DEFAULT_PORT, + }; int r; // Parse command line diff --git a/src/main.h b/src/main.h index 4a84771..3b82365 100644 --- a/src/main.h +++ b/src/main.h @@ -18,6 +18,8 @@ # # #############################################################################*/ +#define DEFAULT_PORT 5001 + struct fireperf_config { enum { FIREPERF_MODE_NONE = 0,