From 6c4798fd44b9d0565fbc9d1859173628c30ab865 Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Sat, 22 Oct 2011 20:41:31 +0400 Subject: [PATCH] util: Rename objzero to memzero_p More natural name Signed-off-by: Cyrill Gorcunov --- include/util.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/util.h b/include/util.h index c647047b7..b356cc5d1 100644 --- a/include/util.h +++ b/include/util.h @@ -104,8 +104,8 @@ extern void printk(const char *format, ...); #define read_ptr_safe_eof(fd, ptr, err) \ read_safe_eof(fd, ptr, sizeof(*(ptr)), err) -#define objzero(obj_ptr) memset(obj_ptr, 0, sizeof(*(obj_ptr))) -#define memzero(p, size) memset(p, 0, size) +#define memzero_p(p) memset(p, 0, sizeof(*p)) +#define memzero(p, size) memset(p, 0, size) int ptrace_peek_area(pid_t pid, void *dst, void *addr, long bytes); int ptrace_poke_area(pid_t pid, void *src, void *addr, long bytes);