[sheepdog] [PATCH] util: make xbsearch(), xlfind(), and xlremove() type safe

Hitoshi Mitake mitake.hitoshi at gmail.com
Mon Sep 2 06:37:27 CEST 2013


At Mon,  2 Sep 2013 12:08:58 +0900,
Hitoshi Mitake wrote:
> 
> This patch adds BUILD_BUG_ON() checks to xbsearch(), xlfind() and
> xlremove(). These checks can prevent wrong usage of these functions
> (e.g. comparing sd_node and sd_vnode, removed in the commit 15e7d5fb).
> 
> Signed-off-by: Hitoshi Mitake <mitake.hitoshi at lab.ntt.co.jp>
> ---
>  include/util.h |    3 +++
>  1 file changed, 3 insertions(+)

Sorry, please ignore this patch. This cannot do better check than
existing assert()s.

Thanks,
Hitoshi



More information about the sheepdog mailing list