From 7ce42e9f486cd67b19a6aee53301496fa8587656 Mon Sep 17 00:00:00 2001 From: Anastasia Lyupa Date: Mon, 24 Jun 2013 10:50:13 +0400 Subject: [PATCH] format PACK_MEMORY: p -> BUF_PTR --- include/binproto.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/binproto.h b/include/binproto.h index 0c38a5a..a12a53b 100644 --- a/include/binproto.h +++ b/include/binproto.h @@ -180,9 +180,9 @@ static inline char *pack_args(char *to, const char *fmt, ...) #define PACK_MEMORY(size, memory_api_type, addr) \ do { \ - BUF_PTR = pack_int32(p, size); \ - BUF_PTR = pack_int32(p, memory_api_type); \ - BUF_PTR = pack_int64(p, (uintptr_t)addr); \ + BUF_PTR = pack_int32(BUF_PTR, size); \ + BUF_PTR = pack_int32(BUF_PTR, memory_api_type); \ + BUF_PTR = pack_int64(BUF_PTR, (uintptr_t)addr); \ } while (0) #define PACK_UICONTROL(control) \ -- 2.7.4