Logoj0ke.net Open Build Service > Projects > server:monitoring:branches:gearman:1.0.1 > boost-jam > boost-jam-codecleanup.diff
Sign Up | Log In

File boost-jam-codecleanup.diff of Package boost-jam

x
 
1
diff -rup boost-jam-3.1.18.orig/expand.c boost-jam-3.1.18/expand.c
2
--- boost-jam-3.1.18.orig/expand.c  2010-04-02 22:41:15.059100821 +0200
3
+++ boost-jam-3.1.18/expand.c   2010-04-02 23:28:36.686114000 +0200
4
@@ -82,7 +82,7 @@ LIST * var_expand( LIST * l, char * in,
5
     int depth;
6
 
7
     if ( DEBUG_VAREXP )
8
-        printf( "expand '%.*s'\n", end - in, in );
9
+        printf( "expand '%.*s'\n", (int)(end - in), in );
10
 
11
     /* This gets a lot of cases: $(<) and $(>). */
12
     if
13
diff -rup boost-jam-3.1.18.orig/hash.h boost-jam-3.1.18/hash.h
14
--- boost-jam-3.1.18.orig/hash.h    2010-04-02 22:41:15.042116497 +0200
15
+++ boost-jam-3.1.18/hash.h 2010-04-02 23:31:19.887112718 +0200
16
@@ -19,7 +19,7 @@ void          hashdone     ( struct hash
17
 void          hashenumerate( struct hash * hp, void (* f)( void *, void * ), void * data );
18
 int           hash_free    ( struct hash * hp, HASHDATA * data);
19
 
20
-#define hashenter( hp, data ) ( !hashitem( hp, data, !0 ) )
21
-#define hashcheck( hp, data ) hashitem( hp, data, 0 )
22
+#define hashenter( hp, data ) ( !hashitem( (hp), (data), !0 ) )
23
+#define hashcheck( hp, data ) hashitem( (hp), (data), 0 )
24
 
25
 #endif
26