⛏️ index : buildtools.git

author Oliver Tappe <zooey@hirschkaefer.de> 2014-08-10 17:16:21.0 +02:00:00
committer Oliver Tappe <zooey@hirschkaefer.de> 2014-08-10 17:16:21.0 +02:00:00
commit
bc712e752579c5e42b788e0fb3655915ae410c38 [patch]
tree
db23eb6c2422c8e07c0864bd8fab975db71a6d2d
parent
e5a1aa929a5e26ccff8d56228634ef6ba0078212
download
bc712e752579c5e42b788e0fb3655915ae410c38.tar.gz

Fix format-related warnings during build of jam.



Diff

 jam/execunix.c | 2 +-
 jam/expand.c   | 2 +-
 jam/hash.c     | 2 +-
 jam/hcache.c   | 6 ++++--
 4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/jam/execunix.c b/jam/execunix.c
index 62176d3..7e93603 100644
--- a/jam/execunix.c
+++ b/jam/execunix.c
@@ -297,7 +297,7 @@
		    break;

	    if( i == MAXJOBS )
		printf( "jam: waif child process %ld found, ignoring it!\n", w );
		printf( "jam: waif child process %d found, ignoring it!\n", w );
	} while( i == MAXJOBS );

# ifdef USE_EXECNT
diff --git a/jam/expand.c b/jam/expand.c
index 68f8826..aca9137 100644
--- a/jam/expand.c
+++ b/jam/expand.c
@@ -81,7 +81,7 @@
	int depth;

	if( DEBUG_VAREXP )
	    printf( "expand '%.*s'\n", end - in, in );
	    printf( "expand '%.*s'\n", (int)(end - in), in );

	/* This gets alot of cases: $(<) and $(>) */

diff --git a/jam/hash.c b/jam/hash.c
index 015181c..c3c5851 100644
--- a/jam/hash.c
+++ b/jam/hash.c
@@ -252,6 +252,6 @@
		hp->items.nel,
		hp->tab.nel,
		hp->items.nel * hp->items.size / 1024,
		hp->tab.nel * sizeof( ITEM ** ) / 1024,
		(int)(hp->tab.nel * sizeof( ITEM ** ) / 1024),
		(float)count / (float)sets );
}
diff --git a/jam/hcache.c b/jam/hcache.c
index fec4f2c..ee9a9e1 100644
--- a/jam/hcache.c
+++ b/jam/hcache.c
@@ -313,10 +313,10 @@
	else if (c->age > maxage)
	    continue;

	sprintf(includes_count_str, "%lu", list_length(c->includes));
	sprintf(hdrscan_count_str, "%lu", list_length(c->hdrscan));
	sprintf(includes_count_str, "%u", list_length(c->includes));
	sprintf(hdrscan_count_str, "%u", list_length(c->hdrscan));
	sprintf(time_str, "%lu", c->time);
	sprintf(age_str, "%lu", c->age);
	sprintf(age_str, "%u", c->age);

	write_netstring(f, CACHE_RECORD_HEADER);
	write_netstring(f, c->boundname);