diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2006-12-19 22:50:55 +0000 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2006-12-19 22:50:55 +0000 |
commit | 0c409f097c4db02cdf4c614398aadb154b54d332 (patch) | |
tree | 26aa6bdd9b4ee2b1b70146323c70868ced01bbd4 | |
parent | cd6b61f5499cef3037f8eb07861a8ec7d54fd5f9 (diff) | |
download | strongswan-0c409f097c4db02cdf4c614398aadb154b54d332.tar.bz2 strongswan-0c409f097c4db02cdf4c614398aadb154b54d332.tar.xz |
additional parentheses for same_chunk() macro
-rw-r--r-- | src/pluto/defs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pluto/defs.h b/src/pluto/defs.h index 7e92ea540..dc90fcb26 100644 --- a/src/pluto/defs.h +++ b/src/pluto/defs.h @@ -82,7 +82,7 @@ typedef struct chunk chunk_t; #define chunkcpy(dst, chunk) \ { memcpy(dst, chunk.ptr, chunk.len); dst += chunk.len;} #define same_chunk(a, b) \ - (a).len == (b).len && memcmp((a).ptr, (b).ptr, (b).len) == 0 + ((a ).len == (b).len && memcmp((a).ptr, (b).ptr, (b).len) == 0 ) extern char* temporary_cyclic_buffer(void); extern const char* concatenate_paths(const char *a, const char *b); |