mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-07 10:12:53 +03:00
Merge pull request #277 from nmeum/fix-U-option
coap-client: The -U option doesn't expect an argument
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -1206,7 +1206,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);
|
||||
|
||||
Reference in new issue
Block a user