public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
From: Marek Lindner <mareklindner@neomailbox.ch>
To: b.a.t.m.a.n@lists.open-mesh.org
Cc: Nicholas Krause <xerofoify@gmail.com>
Subject: Re: [B.A.T.M.A.N.] [PATCH] batman-adv: Use bool as return type for boolean functions
Date: Sun, 28 Feb 2016 08:33:06 +0800	[thread overview]
Message-ID: <13742891.BYD5Djd9JL@voltaire> (raw)
In-Reply-To: <1456171359-19330-1-git-send-email-sven@narfation.org>

[-- Attachment #1: Type: text/plain, Size: 1545 bytes --]

On Monday, February 22, 2016 21:02:39 Sven Eckelmann wrote:
> It is easier to understand that the returned value of a specific function
> doesn't have to be 0 when the functions was successful when the actual
> return type is bool. This is especially true when all surrounding functions
> with return type int use negative values to return the error code.
> 
> Reported-by: Nicholas Krause <xerofoify@gmail.com>
> Signed-off-by: Sven Eckelmann <sven@narfation.org>
> ---
>  net/batman-adv/bat_iv_ogm.c            |  23 ++---
>  net/batman-adv/bitarray.c              |  16 +--
>  net/batman-adv/bitarray.h              |  14 +--
>  net/batman-adv/bridge_loop_avoidance.c | 175
> +++++++++++++++++---------------- net/batman-adv/bridge_loop_avoidance.h
> |  43 ++++----
>  net/batman-adv/debugfs.c               |   2 +-
>  net/batman-adv/distributed-arp-table.c |   6 +-
>  net/batman-adv/hard-interface.c        |  15 ++-
>  net/batman-adv/hash.h                  |   6 +-
>  net/batman-adv/main.h                  |   2 +-
>  net/batman-adv/network-coding.c        |  12 +--
>  net/batman-adv/originator.c            |   4 +-
>  net/batman-adv/originator.h            |   2 +-
>  net/batman-adv/routing.c               |  37 +++----
>  net/batman-adv/routing.h               |   6 +-
>  net/batman-adv/soft-interface.c        |   6 +-
>  net/batman-adv/soft-interface.h        |   2 +-
>  net/batman-adv/translation-table.c     |  31 +++---
>  18 files changed, 203 insertions(+), 199 deletions(-)

Applied in revision d58a135.

Thanks,
Marek

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

      parent reply	other threads:[~2016-02-28  0:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-22 20:02 [B.A.T.M.A.N.] [PATCH] batman-adv: Use bool as return type for boolean functions Sven Eckelmann
2016-02-23  0:04 ` nick
2016-02-28  0:33 ` Marek Lindner [this message]

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=13742891.BYD5Djd9JL@voltaire \
    --to=mareklindner@neomailbox.ch \
    --cc=b.a.t.m.a.n@lists.open-mesh.org \
    --cc=xerofoify@gmail.com \
    /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