]> git.ipfire.org Git - fireperf.git/commitdiff
Set default port to 5001
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 25 Jan 2021 13:07:36 +0000 (13:07 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 25 Jan 2021 13:07:36 +0000 (13:07 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/main.c
src/main.h

index 0cc8578f9af7f212f3ff45105151246f59867a09..03ed2d1833bc57dd22d310e2bcb11532e60261f4 100644 (file)
@@ -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
index 4a84771d778fd5f7c7a904d5984d3e5db8a33f5d..3b823652e06b04ed8df2609499a6e5eb818b4d69 100644 (file)
@@ -18,6 +18,8 @@
 #                                                                             #
 #############################################################################*/
 
+#define DEFAULT_PORT 5001
+
 struct fireperf_config {
        enum {
                FIREPERF_MODE_NONE = 0,