diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-02-26 11:37:29 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-02-26 11:37:31 +0100 |
commit | 519fd20b0c1ad0eea2c46d8b289c4b76a28ba907 (patch) | |
tree | 15e22824af71a4bf65a10d402efb9a8f1f155d87 | |
parent | 0ad10f6aeebf75ef550cfa2ce772d28b2b9fd7e0 (diff) | |
download | dabmux-519fd20b0c1ad0eea2c46d8b289c4b76a28ba907.tar.gz dabmux-519fd20b0c1ad0eea2c46d8b289c4b76a28ba907.tar.bz2 dabmux-519fd20b0c1ad0eea2c46d8b289c4b76a28ba907.zip |
zmq2edi: use int for getopt return value
Because somebody reported
> src/zmq2edi/zmq2edi.cpp:231:19: warning: case label value is less than
> minimum value for type
for the case -1:
-rw-r--r-- | src/zmq2edi/zmq2edi.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zmq2edi/zmq2edi.cpp b/src/zmq2edi/zmq2edi.cpp index ebebc17..b2c20f4 100644 --- a/src/zmq2edi/zmq2edi.cpp +++ b/src/zmq2edi/zmq2edi.cpp @@ -224,7 +224,7 @@ int start(int argc, char **argv) int delay_ms = 500; - char ch = 0; + int ch = 0; while (ch != -1) { ch = getopt(argc, argv, "d:p:s:S:t:Pf:i:Dva:w:"); switch (ch) { |