[sheepdog] [PATCH] use bool for boolean variables

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Mon Oct 8 05:05:59 CEST 2012


At Sat,  6 Oct 2012 20:03:49 +0900,
MORITA Kazutaka wrote:
> 
> This improves code readability.
> 
> Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
> ---
>  collie/cluster.c          |   40 ++++++++++++------------
>  collie/collie.c           |   23 +++++++------
>  collie/collie.h           |   10 +++---
>  collie/common.c           |    4 +-
>  collie/treeview.c         |   12 +++---
>  collie/treeview.h         |    4 ++-
>  collie/vdi.c              |   77 +++++++++++++++++++++++----------------------
>  include/logger.h          |    5 ++-
>  include/net.h             |    2 +-
>  include/sheep.h           |    9 +++--
>  include/sheepdog_proto.h  |   10 +++---
>  include/util.h            |    1 +
>  lib/logger.c              |   16 +++++-----
>  lib/net.c                 |    6 ++--
>  sheep/cluster/accord.c    |   20 ++++++------
>  sheep/cluster/corosync.c  |   38 +++++++++++-----------
>  sheep/cluster/local.c     |    8 ++--
>  sheep/cluster/zookeeper.c |   32 +++++++++---------
>  sheep/group.c             |   14 ++++----
>  sheep/object_cache.c      |   73 +++++++++++++++++++++---------------------
>  sheep/ops.c               |   58 +++++++++++++++++-----------------
>  sheep/plain_store.c       |    6 ++--
>  sheep/recovery.c          |   22 ++++++------
>  sheep/request.c           |   13 +++----
>  sheep/sheep.c             |   14 ++++----
>  sheep/sheep_priv.h        |   49 ++++++++++++++--------------
>  sheep/store.c             |   24 +++++++-------
>  sheep/trace/graph.c       |    2 +-
>  sheep/trace/stabs.c       |    5 ++-
>  sheep/trace/trace.c       |   14 ++++----
>  sheep/trace/trace.h       |    2 +-
>  sheep/vdi.c               |   33 ++++++++++---------
>  sheep/work.c              |    6 ++-
>  sheepfs/core.c            |   12 +++---
>  sheepfs/shadow_file.c     |    6 ++--
>  sheepfs/sheepfs.h         |    2 +-
>  sheepfs/volume.c          |    6 ++--
>  37 files changed, 344 insertions(+), 334 deletions(-)

Applied.



More information about the sheepdog mailing list