summaryrefslogtreecommitdiffstats
path: root/patches/unstrung-1.11.0/0001-main-interface-needs-argument.patch
blob: 33022ead62f65f753ddad602c5b05c306d063d9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: Alexander Aring <aar@pengutronix.de>
Date: Tue, 26 Apr 2016 11:25:24 +0200
Subject: [PATCH] main: interface needs argument

The interface argument needs an argument otherwise optarg is NULL.

Signed-off-by: Alexander Aring <aar@pengutronix.de>
---
 programs/sunshine/main.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/programs/sunshine/main.cpp b/programs/sunshine/main.cpp
index 2128eb616fac..b005ccf42fd9 100644
--- a/programs/sunshine/main.cpp
+++ b/programs/sunshine/main.cpp
@@ -34,7 +34,7 @@ char *progname;
 static struct option const longopts[] =
 {
     { "help",      0, 0, '?'},
-    { "interface", 0, 0, 'i'},
+    { "interface", 1, 0, 'i'},
     { "daemon",    0, 0, 'D'},
     { "prefix",    1, NULL, 'p'},
     { "ignore-pio",0, NULL, 'P'},