summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2008-06-27 22:00:22 +0000
committerStef Walter <stef@memberwebs.com>2008-06-27 22:00:22 +0000
commit383054a85d48f1b7585bdabe7abc71f9668f01b6 (patch)
tree4242d4cea08fccdb22cc58974c66e9880833a614
parent77428f1a22e9be3d0488138ec1e3e37ffe7ea805 (diff)
Fix some build warnings.
-rw-r--r--daemon/digest.c1
-rw-r--r--daemon/misc.c6
2 files changed, 2 insertions, 5 deletions
diff --git a/daemon/digest.c b/daemon/digest.c
index 93f433b..4b00152 100644
--- a/daemon/digest.c
+++ b/daemon/digest.c
@@ -29,6 +29,7 @@
#include <ctype.h>
#include <syslog.h>
+#include <assert.h>
/* A globally unique counter used to guarantee uniqueness of nonces */
static unsigned int g_digest_unique = 0;
diff --git a/daemon/misc.c b/daemon/misc.c
index 49c585e..36af7aa 100644
--- a/daemon/misc.c
+++ b/daemon/misc.c
@@ -594,11 +594,7 @@ static int uri_cmp_part_n(int n1, int n2, int def)
else if(n1 < n2)
return -1;
- else if(n2 > n1)
- return 1;
-
- /* Not reached */
- ASSERT(0);
+ return 1;
}
int ha_uricmp(ha_uri_t* one, ha_uri_t* two)