Browse code

Fix distcheck warnings.

Török Edvin authored on 2010/07/29 21:21:18
Showing 5 changed files
... ...
@@ -216,7 +216,7 @@ static void print_platform(struct cli_environment *env)
216 216
 {
217 217
     printf("\nPlatform information\n--------------------\n");
218 218
     printf("uname: %s %s %s %s\n",
219
-	   env->sysname, env->release, env->release, env->version, env->machine);
219
+	   env->sysname, env->release, env->version, env->machine);
220 220
 
221 221
     printf("OS: "TARGET_OS_TYPE", ARCH: "TARGET_ARCH_TYPE", CPU: "TARGET_CPU_TYPE"\n");
222 222
 
... ...
@@ -248,8 +248,8 @@ static void print_platform(struct cli_environment *env)
248 248
 #endif
249 249
     if (env->triple[0])
250 250
     printf("Triple: %s\n", env->triple);
251
-    if (env->cpu[0]);
252
-    printf("CPU: %s, %s\n", env->cpu, env->big_endian ? "Big-endian" : "Little-endian");
251
+    if (env->cpu[0])
252
+	printf("CPU: %s, %s\n", env->cpu, env->big_endian ? "Big-endian" : "Little-endian");
253 253
     printf("platform id: 0x%08x%08x%08x\n",
254 254
 	   env->platform_id_a,
255 255
 	   env->platform_id_b,
... ...
@@ -32,6 +32,7 @@
32 32
 #include "pe.h"
33 33
 #include "bytecode.h"
34 34
 #include "bytecode_priv.h"
35
+#include "bytecode_detect.h"
35 36
 #include "readdb.h"
36 37
 #include "scanners.h"
37 38
 #include "bytecode_api.h"
... ...
@@ -1722,7 +1723,7 @@ static int calc_gepz(struct cli_bc *bc, struct cli_bc_func *func, uint16_t tid,
1722 1722
 	return 0;
1723 1723
     gepoff = &func->constants[op - func->numValues];
1724 1724
     if (*gepoff >= ty->numElements) {
1725
-	cli_errmsg("bytecode: gep offset out of range: %d >= %d\n",*gepoff, ty->numElements);
1725
+	cli_errmsg("bytecode: gep offset out of range: %d >= %d\n",(uint32_t)*gepoff, ty->numElements);
1726 1726
 	return -1;
1727 1727
     }
1728 1728
     for (i=0;i<*gepoff;i++) {
... ...
@@ -2540,7 +2541,7 @@ void cli_bytecode_describe(const struct cli_bc *bc)
2540 2540
     printf("Bytecode metadata:\n\tcompiler version: %s\n",
2541 2541
 	   bc->metadata.compiler ? bc->metadata.compiler : "N/A");
2542 2542
     printf("\tcompiled on: (%d) %s",
2543
-	   stamp,
2543
+	   (uint32_t)stamp,
2544 2544
 	   cli_ctime(&stamp, buf, sizeof(buf)));
2545 2545
     printf("\tcompiled by: %s\n", bc->metadata.sigmaker ? bc->metadata.sigmaker : "N/A");
2546 2546
     /*TODO: parse and display arch name, also take it into account when
... ...
@@ -1219,7 +1219,7 @@ int32_t cli_bcapi_input_switch(struct cli_bc_ctx *ctx , int32_t extracted_file)
1219 1219
 uint32_t cli_bcapi_get_environment(struct cli_bc_ctx *ctx , struct cli_environment* env, uint32_t len)
1220 1220
 {
1221 1221
     if (len > sizeof(*env)) {
1222
-	cli_dbgmsg("cli_bcapi_get_environment len %d > %d\n", len, sizeof(*env));
1222
+	cli_dbgmsg("cli_bcapi_get_environment len %u > %lu\n", len, sizeof(*env));
1223 1223
 	return -1;
1224 1224
     }
1225 1225
     memcpy(env, ctx->env, len);
... ...
@@ -152,5 +152,5 @@ struct cli_environment {
152 152
 #endif
153 153
 
154 154
 void cli_detect_env_jit(struct cli_environment *env);
155
-void cli_detect_env(struct cli_environment *env);
155
+void cli_detect_environment(struct cli_environment *env);
156 156
 #endif
... ...
@@ -1504,10 +1504,10 @@ static int cli_loadcbc(FILE *fs, struct cl_engine *engine, unsigned int *signo,
1504 1504
 			struct cli_bc *bc0 = &bcs->all_bcs[i];
1505 1505
 			cli_errmsg("Can only load 1 BC_STARTUP bytecode, attempted to load 2nd!\n");
1506 1506
 			cli_warnmsg("Previous BC_STARTUP: %d %d by %s\n",
1507
-				    bc0->id, bc0->metadata.timestamp,
1507
+				    bc0->id, (uint32_t)bc0->metadata.timestamp,
1508 1508
 				    bc0->metadata.sigmaker ? bc0->metadata.sigmaker : "N/A");
1509 1509
 			cli_warnmsg("Conflicting BC_STARTUP: %d %d by %s\n",
1510
-				    bc->id, bc->metadata.timestamp,
1510
+				    bc->id, (uint32_t)bc->metadata.timestamp,
1511 1511
 				    bc->metadata.sigmaker ? bc->metadata.sigmaker : "N/A");
1512 1512
 			return CL_EMALFDB;
1513 1513
 		    }