From f13bcd8c2821c5834e4dc6d111a95129aa39eb86 Mon Sep 17 00:00:00 2001 From: Jan Vidar Krey Date: Fri, 12 Nov 2010 11:31:16 +0100 Subject: [PATCH] Minor compile fixes. --- src/adc/sid.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/adc/sid.c b/src/adc/sid.c index 85f43bb..f334516 100644 --- a/src/adc/sid.c +++ b/src/adc/sid.c @@ -120,7 +120,6 @@ void sid_pool_destroy(struct sid_pool* pool) sid_t sid_alloc(struct sid_pool* pool, struct hub_user* user) { sid_t n; - if (pool->count >= (pool->max - pool->min)) { #ifdef DEBUG_SID @@ -129,8 +128,7 @@ sid_t sid_alloc(struct sid_pool* pool, struct hub_user* user) return 0; } - n = ++pool->count; - + n = (++pool->count); for (; (pool->map[n % pool->max]); n++) ; #ifdef DEBUG_SID