From 1c789a7bebac0b9de26a9a770ada79015f7b911f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Wed, 28 Nov 2018 13:00:33 +0100 Subject: [PATCH] coap-client: The -U option doesn't expect an argument Thus it must not be postfixed with a colon character in the optstring. While at it move the option to the beginning of the opstring to the other options which don't expect an argument. Without this commit the -U option is unusable. --- examples/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/client.c b/examples/client.c index ea13ee72..b7995514 100644 --- a/examples/client.c +++ b/examples/client.c @@ -1191,7 +1191,7 @@ main(int argc, char **argv) { int create_uri_opts = 1; struct sigaction sa; - while ((opt = getopt(argc, argv, "Nra:b:c:e:f:k:m:p:s:t:o:v:A:B:C:O:P:R:T:u:U:l:K:")) != -1) { + while ((opt = getopt(argc, argv, "NrUa:b:c:e:f:k:m:p:s:t:o:v:A:B:C:O:P:R:T:u:l:K:")) != -1) { switch (opt) { case 'a': strncpy(node_str, optarg, NI_MAXHOST - 1);