From 2e1271cfc7687a043df762cb2b1bfa7fca0d783d Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Tue, 30 Oct 2012 13:10:58 -0700 Subject: [PATCH] codec cleanup --- expand.c | 2 +- hash.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/expand.c b/expand.c index d8e5882..e124187 100644 --- a/expand.c +++ b/expand.c @@ -82,7 +82,7 @@ LIST * var_expand( LIST * l, char * in, char * end, LOL * lol, int cancopyin ) int depth; if ( DEBUG_VAREXP ) - printf( "expand '%.*s'\n", end - in, in ); + printf( "expand '%.*s'\n", (int)(end - in), in ); /* This gets a lot of cases: $(<) and $(>). */ if diff --git a/hash.h b/hash.h index 7195b41..4ef232e 100644 --- a/hash.h +++ b/hash.h @@ -19,7 +19,7 @@ void hashdone ( struct hash * hp ); void hashenumerate( struct hash * hp, void (* f)( void *, void * ), void * data ); int hash_free ( struct hash * hp, HASHDATA * data); -#define hashenter( hp, data ) ( !hashitem( hp, data, !0 ) ) -#define hashcheck( hp, data ) hashitem( hp, data, 0 ) +#define hashenter( hp, data ) ( !hashitem( (hp), (data), !0 ) ) +#define hashcheck( hp, data ) hashitem( (hp), (data), 0 ) #endif -- 2.34.1