strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd6b61f
)
additional parentheses for same_chunk() macro
author
Andreas Steffen
<andreas.steffen@strongswan.org>
Tue, 19 Dec 2006 22:50:55 +0000
(22:50 -0000)
committer
Andreas Steffen
<andreas.steffen@strongswan.org>
Tue, 19 Dec 2006 22:50:55 +0000
(22:50 -0000)
src/pluto/defs.h
patch
|
blob
|
history
diff --git
a/src/pluto/defs.h
b/src/pluto/defs.h
index
7e92ea5
..
dc90fcb
100644
(file)
--- 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);