[Pkg-wmaker-commits] [wmcoincoin] 43/87: Fix -Wsizeof-pointer-memaccess compiler warning
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Fri Aug 28 17:27:36 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository wmcoincoin.
commit e6dd79cb7355c849e2a07ccccc43328eb2cdef2b
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date: Tue Nov 11 12:13:46 2014 -0600
Fix -Wsizeof-pointer-memaccess compiler warning
---
src/board_util.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/board_util.c b/src/board_util.c
index 45f248d..32e9bc9 100644
--- a/src/board_util.c
+++ b/src/board_util.c
@@ -183,7 +183,7 @@ board_find_id(const Board *board, int id)
static board_msg_info *
board_find_md5_rec(board_msg_info *it, md5_byte_t md5[16]) {
board_msg_info *it2;
- if (it->ri && memcmp(md5, it->ri->md5, sizeof md5) == 0) return it;
+ if (it->ri && memcmp(md5, it->ri->md5, sizeof *md5) == 0) return it;
else if (it->left && (it2=board_find_md5_rec(it->left, md5))) return it2;
else if (it->right && (it2=board_find_md5_rec(it->right, md5))) return it2;
return NULL;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmcoincoin.git
More information about the Pkg-wmaker-commits
mailing list