From: Stefan Schmidt <stefan@osg.samsung.com>
To: linux-wpan@vger.kernel.org
Cc: Alexander Aring <alex.aring@gmail.com>,
Stefan Schmidt <stefan@osg.samsung.com>
Subject: [PATCH wpan-tools 3/3] wpan-ping: switch server indicator variable to bool
Date: Thu, 18 Jun 2015 10:37:36 +0200 [thread overview]
Message-ID: <1434616656-16209-3-git-send-email-stefan@osg.samsung.com> (raw)
In-Reply-To: <1434616656-16209-1-git-send-email-stefan@osg.samsung.com>
This is really only true or false so use bool as we do for extended.
Signed-off-by: Stefan Schmidt <stefan@osg.samsung.com>
---
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
next prev parent reply other threads:[~2015-06-18 8:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-18 8:37 [PATCH wpan-tools 1/3] wpan-ping: adjust maximal packet length for extended addresses Stefan Schmidt
2015-06-18 8:37 ` [PATCH wpan-tools 2/3] wpan-ping: allow usage of extended addressing scheme Stefan Schmidt
2015-06-18 8:37 ` Stefan Schmidt [this message]
2015-06-19 7:50 ` [PATCH wpan-tools 1/3] wpan-ping: adjust maximal packet length for extended addresses Alexander Aring
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1434616656-16209-3-git-send-email-stefan@osg.samsung.com \
--to=stefan@osg.samsung.com \
--cc=alex.aring@gmail.com \
--cc=linux-wpan@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox