[sheepdog] [PATCH 1/2] sheep: clean up #include headers

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Mon Jul 8 09:28:19 CEST 2013


At Fri,  5 Jul 2013 11:30:00 +0800,
Liu Yuan wrote:
> 
> Current #include are messy duplicating #include everythere, since sheep_priv.h
> already have most of system #include, it is convenient to have most common
> system includes in it. Then source files in sheep/ will mostly need only
> include sheep_priv.h.
> 
> Rare header files like <fcgiapp.h> aren't included in sheep_priv.h.
> 
> Signed-off-by: Liu Yuan <namei.unix at gmail.com>
> ---
>  sheep/config.c            |    6 ------
>  sheep/gateway.c           |    4 ----
>  sheep/group.c             |   20 +-------------------
>  sheep/http.c              |    4 ----
>  sheep/journal.c           |    8 --------
>  sheep/md.c                |   15 ---------------
>  sheep/migrate.c           |    8 --------
>  sheep/object_cache.c      |   16 ----------------
>  sheep/object_list_cache.c |    8 --------
>  sheep/ops.c               |   15 ---------------
>  sheep/plain_store.c       |    9 +--------
>  sheep/recovery.c          |    6 ------
>  sheep/request.c           |   12 +-----------
>  sheep/sheep.c             |   17 -----------------
>  sheep/sheep_priv.h        |   16 ++++++++++++++++
>  sheep/sockfd_cache.c      |    9 ---------
>  sheep/store.c             |   16 ----------------
>  sheep/trace/graph.c       |    5 -----
>  sheep/trace/stabs.c       |    2 --
>  sheep/trace/trace.c       |   10 ----------
>  sheep/trace/trace.h       |    7 +------
>  sheep/vdi.c               |    5 -----
>  22 files changed, 20 insertions(+), 198 deletions(-)

Applied, thanks!

Kazutaka



More information about the sheepdog mailing list