aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2008-04-01 14:26:31 +0000
committerMartin Willi <martin@strongswan.org>2008-04-01 14:26:31 +0000
commitd5a9e6ff3a31a176705122b20bbf7992ccda2231 (patch)
treee3a3c03e9d4cccb0caaa606b6f0acca3232efabd /scripts
parent68356ab12cb1058fde78af312bfae3be0398d4d7 (diff)
downloadstrongswan-d5a9e6ff3a31a176705122b20bbf7992ccda2231.tar.bz2
strongswan-d5a9e6ff3a31a176705122b20bbf7992ccda2231.tar.xz
and a fix for it
Diffstat (limited to 'scripts')
-rw-r--r--scripts/bin2array.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/bin2array.c b/scripts/bin2array.c
index 015c2bd7d..4778b446a 100644
--- a/scripts/bin2array.c
+++ b/scripts/bin2array.c
@@ -7,7 +7,7 @@
int main(int argc, char *argv[])
{
int i, end = 0;
- char byte;
+ unsigned char byte;
printf("char %s[] = {\n", argc > 1 ? argv[1] : "data");
while (1)
@@ -20,7 +20,7 @@ int main(int argc, char *argv[])
end = 1;
break;
}
- printf("0x%02x,", byte);
+ printf("0x%02x,", (unsigned int)byte);
}
printf("\n");
if (end)