From 383054a85d48f1b7585bdabe7abc71f9668f01b6 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Fri, 27 Jun 2008 22:00:22 +0000 Subject: Fix some build warnings. --- daemon/digest.c | 1 + daemon/misc.c | 6 +----- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'daemon') 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 #include +#include /* 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) -- cgit v1.2.3