diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2007-03-27 04:39:44 +0000 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2007-03-27 04:39:44 +0000 |
commit | 469e9686ae9d08e14088d186716bbfc10133297a (patch) | |
tree | 3c4398c8f6a5ebe8cbbb2bbeb6d95d96b4ac359e | |
parent | 0953f2a65fa4cda05309c16bfdb3c34cac6df838 (diff) | |
download | strongswan-469e9686ae9d08e14088d186716bbfc10133297a.tar.bz2 strongswan-469e9686ae9d08e14088d186716bbfc10133297a.tar.xz |
cmp_chunk returns int argument
-rw-r--r-- | src/pluto/defs.c | 2 | ||||
-rw-r--r-- | src/pluto/defs.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/pluto/defs.c b/src/pluto/defs.c index 16f6a3949..9ae32a480 100644 --- a/src/pluto/defs.c +++ b/src/pluto/defs.c @@ -215,7 +215,7 @@ concatenate_paths(const char *a, const char *b) /* compare two chunks, returns zero if a equals b * negative/positive if a is earlier/later in the alphabet than b */ -bool +int cmp_chunk(chunk_t a, chunk_t b) { int cmp_len, len, cmp_value; diff --git a/src/pluto/defs.h b/src/pluto/defs.h index 16298f01d..3bfb29a22 100644 --- a/src/pluto/defs.h +++ b/src/pluto/defs.h @@ -90,7 +90,7 @@ extern const char* concatenate_paths(const char *a, const char *b); extern const chunk_t empty_chunk; /* compare two chunks */ -extern bool cmp_chunk(chunk_t a, chunk_t b); +extern int cmp_chunk(chunk_t a, chunk_t b); /* move a chunk to a memory position and free it after insertion */ extern void mv_chunk(u_char **pos, chunk_t content); |