Skip to contentSkip to conversation

wpan-hwsim: fix long option argument option for dot

PATCH Applied Alexander Aring 2 participants 3 messages Oct 16, 2018 – Oct 25, 2018 IEEE 802.15.4

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wpan-hwsim: fix long option argument option for dot

This patch fixes the long option argument option to no argument. The dot argument doesn't require any postponed argument.

---
 wpan-hwsim/wpan-hwsim.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
wpan-hwsim/wpan-hwsim.c +1 -1
index dcddb09..3e54348 100644
@@ -393,7 +393,7 @@ int main(int argc, const char *argv[])
 		static struct option long_options[] = {
 			{"help",	no_argument,		0,	'h' },
 			{"version",	no_argument,		0,	'v' },
-			{"dot",		required_argument,	0,	'd' },
+			{"dot",		no_argument,		0,	'd' },
 			{"ignore",	required_argument,	0,	'i' },
 			{0,				0,	0,	0 }
 		};
Signature · 1 line
2.11.0
maintainer Applied
#1 lore raw

Hello.

Quoted 14 lines · Alexander Aring

This patch fixes the long option argument option to no argument. The dot argument doesn't require any postponed argument.

---
 wpan-hwsim/wpan-hwsim.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
wpan-hwsim/wpan-hwsim.c +0 -0
index dcddb09..3e54348 100644

wpan-hwsim/wpan-hwsim.c int main(int argc, const char *argv[]) · line 399

Quoted 8 lines
wpan-hwsim/wpan-hwsim.c +1 -1
@@ -393,7 +393,7 @@ int main(int argc, const char *argv[])
 		static struct option long_options[] = {
 			{"help",	no_argument,		0,	'h' },
 			{"version",	no_argument,		0,	'v' },
-			{"dot",		required_argument,	0,	'd' },
+			{"dot",		no_argument,		0,	'd' },
 			{"ignore",	required_argument,	0,	'i' },
 			{0,				0,	0,	0 }
 		};

Applied to wpan-tools repo.

Is there anythign else left you wanted to have in before we look into a new release?

regards
Stefan Schmidt

#2 lore raw

Hi,

Quoted 28 lines · Stefan Schmidt

Hello.

Quoted 14 lines · Alexander Aring

This patch fixes the long option argument option to no argument. The dot argument doesn't require any postponed argument.

---
 wpan-hwsim/wpan-hwsim.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
wpan-hwsim/wpan-hwsim.c +0 -0
index dcddb09..3e54348 100644

wpan-hwsim/wpan-hwsim.c int main(int argc, const char *argv[]) · line 399

Quoted 8 lines
wpan-hwsim/wpan-hwsim.c +1 -1
@@ -393,7 +393,7 @@ int main(int argc, const char *argv[])
 		static struct option long_options[] = {
 			{"help",	no_argument,		0,	'h' },
 			{"version",	no_argument,		0,	'v' },
-			{"dot",		required_argument,	0,	'd' },
+			{"dot",		no_argument,		0,	'd' },
 			{"ignore",	required_argument,	0,	'i' },
 			{0,				0,	0,	0 }
 		};

Applied to wpan-tools repo.

Quoted 3 lines

Is there anythign else left you wanted to have in before we look into a new release?

no I might figure them out when debian backports ship 4.19 kernel.

- Alex