From e48e01efe7136295b59ca4cbfd62799d28bb93ec Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 17 Mar 2004 02:38:19 +0000 Subject: [PATCH] silence compiler warning --- lib/bind/dst/dst_internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bind/dst/dst_internal.h b/lib/bind/dst/dst_internal.h index 0848adf7e5..928650a726 100644 --- a/lib/bind/dst/dst_internal.h +++ b/lib/bind/dst/dst_internal.h @@ -73,7 +73,7 @@ typedef struct dst_key { #ifndef SAFE_FREE #define SAFE_FREE(a) \ do{if(a != NULL){memset(a,0, sizeof(*a)); free(a); a=NULL;}} while (0) -#define SAFE_FREE2(a,s) if (a != NULL && s > 0){memset(a,0, s);free(a); a=NULL;} +#define SAFE_FREE2(a,s) if (a != NULL && (long)s > 0){memset(a,0, s);free(a); a=NULL;} #endif typedef struct dst_func {