From 4178aeace1120b297bff3e93a0ca37b05c13b692 Mon Sep 17 00:00:00 2001 From: Daniel O'Connor Date: Mon, 21 May 2012 13:18:54 +0930 Subject: [PATCH] Check OVERLAY_ADDRESS_CACHE_SIZE is >0 directly to shut clang up. --- overlay_abbreviations.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/overlay_abbreviations.c b/overlay_abbreviations.c index a1776e93..cd05f285 100644 --- a/overlay_abbreviations.c +++ b/overlay_abbreviations.c @@ -167,7 +167,7 @@ int overlay_abbreviate_prepare_cache() int overlay_abbreviate_cache_address(unsigned char *sid) { - if ((!cache)&&OVERLAY_ADDRESS_CACHE_SIZE) overlay_abbreviate_prepare_cache(); + if ((!cache)&&OVERLAY_ADDRESS_CACHE_SIZE>0) overlay_abbreviate_prepare_cache(); if (!cache) return 0; /* Work out the index in the cache where this address would go. @@ -453,7 +453,7 @@ int overlay_abbreviate_cache_lookup(unsigned char *in,unsigned char *out,int *of int prefix_bytes,int index_bytes) { /* Lookup this entry from the cache, and also assign it the specified prefix */ - if ((!cache)&&OVERLAY_ADDRESS_CACHE_SIZE) overlay_abbreviate_prepare_cache(); + if ((!cache)&&OVERLAY_ADDRESS_CACHE_SIZE>0) overlay_abbreviate_prepare_cache(); if (!cache) return OA_PLEASEEXPLAIN; /* No cache? Then ask for address in full */ /* Work out the index in the cache where this address would live */