codec cleanup
authorAnas Nashif <anas.nashif@intel.com>
Tue, 30 Oct 2012 20:10:58 +0000 (13:10 -0700)
committerAnas Nashif <anas.nashif@intel.com>
Tue, 30 Oct 2012 20:10:58 +0000 (13:10 -0700)
expand.c
hash.h

index d8e5882..e124187 100644 (file)
--- 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 (file)
--- 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