[PATCH wpan-tools 3/3] wpan-ping: switch server indicator variable to bool

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is really only true or false so use bool as we do for extended.

Signed-off-by: Stefan Schmidt <stefan@xxxxxxxxxxxxxxx>
---
 wpan-ping/wpan-ping.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/wpan-ping/wpan-ping.c b/wpan-ping/wpan-ping.c
index 4a159ae..c83a0ad 100644
--- a/wpan-ping/wpan-ping.c
+++ b/wpan-ping/wpan-ping.c
@@ -92,7 +92,7 @@ struct config {
 	uint8_t dst_extended[IEEE802154_ADDR_LEN];
 	uint8_t src_extended[IEEE802154_ADDR_LEN];
 	bool extended;
-	char server;
+	bool server;
 	char *interface;
 	struct nl_sock *nl_sock;
 	int nl802154_id;
@@ -467,7 +467,7 @@ int main(int argc, char *argv[]) {
 			conf->extended = true;
 			break;
 		case 'd':
-			conf->server = 1;
+			conf->server = true;
 			address = optarg;
 			break;
 		case 'c':
-- 
2.4.3

--
To unsubscribe from this list: send the line "unsubscribe linux-wpan" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux