aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/pluto/defs.c2
-rw-r--r--src/pluto/defs.h2
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);