2011-09-08 18:07:15 +02:00
|
|
|
--- src/checksum/checksum_builder.c
|
2012-02-15 14:32:28 +01:00
|
|
|
+++ src/checksum/checksum_builder.c 2012/02/15 13:08:35
|
2011-09-08 18:07:15 +02:00
|
|
|
@@ -64,9 +64,9 @@ static void build_checksum(char *path, c
|
|
|
|
fprintf(stderr, "dlopen failed: %s\n", dlerror());
|
|
|
|
}
|
|
|
|
}
|
2012-02-15 14:32:28 +01:00
|
|
|
- printf("\t{\"%-25s%7u, 0x%08x, %6u, 0x%08x},\n",
|
|
|
|
+ printf("\t{\"%-25s%7zu, 0x%08x, %6zu, 0x%08x},\n",
|
2011-09-08 18:07:15 +02:00
|
|
|
name, fsize, fsum, ssize, ssum);
|
2012-02-15 14:32:28 +01:00
|
|
|
- fprintf(stderr, "\"%-25s%7u / 0x%08x %6u / 0x%08x\n",
|
|
|
|
+ fprintf(stderr, "\"%-25s%7zu / 0x%08x %6zu / 0x%08x\n",
|
2011-09-08 18:07:15 +02:00
|
|
|
name, fsize, fsum, ssize, ssum);
|
|
|
|
}
|
|
|
|
|
|
|
|
@@ -106,14 +106,14 @@ static void build_binary_checksum(char *
|
|
|
|
pos = strrchr(binary, '.');
|
|
|
|
if (pos && streq(pos, ".so"))
|
|
|
|
{
|
|
|
|
- snprintf(name, sizeof(name), "%.*s\",", pos - binary, binary);
|
|
|
|
+ snprintf(name, sizeof(name), "%.*s\",", (int)(pos - binary), binary);
|
|
|
|
if (streq(name, "libstrongswan\","))
|
|
|
|
{
|
|
|
|
snprintf(sname, sizeof(sname), "%s", "library_init");
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
- snprintf(sname, sizeof(sname), "%.*s_init", pos - binary, binary);
|
|
|
|
+ snprintf(sname, sizeof(sname), "%.*s_init", (int)(pos - binary), binary);
|
|
|
|
}
|
|
|
|
build_checksum(path, name, sname);
|
|
|
|
}
|