diff options
author | ukyg9e5r6k7gubiekd6 <ukyg9e5r6k7gubiekd6@mailinator.com> | 2012-08-03 09:33:03 +1000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2012-09-07 05:12:42 -0400 |
commit | d7edd5c56e7f2a3af2b92778a8dfbd315f456099 (patch) | |
tree | 1ae2fe7c6d5b053d28228d30c21316e789570723 /test_bits.c | |
parent | 1542fd2b207e3e0bff9f37a345a814a5bc6893a9 (diff) | |
download | gpsd-d7edd5c56e7f2a3af2b92778a8dfbd315f456099.tar.gz |
Silence some pointer-signedness warnings.
Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
Diffstat (limited to 'test_bits.c')
-rw-r--r-- | test_bits.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test_bits.c b/test_bits.c index 75ee4543..ad990711 100644 --- a/test_bits.c +++ b/test_bits.c @@ -68,8 +68,8 @@ static void bedumpall(void) (void)printf("getbeu64: %016" PRIx64 " %016" PRIx64 " %016" PRIx64 " %016" PRIx64 "\n", (uint64_t) uL1, (uint64_t) uL2, (uint64_t) getbeu64(buf, 0), (uint64_t) getbeu64(buf, 8)); - (void)printf("getbef32: %f %f\n", f1, getbef32(buf, 24)); - (void)printf("getbed64: %.16f %.16f\n", d1, getbed64(buf, 16)); + (void)printf("getbef32: %f %f\n", f1, getbef32((const char *)buf, 24)); + (void)printf("getbed64: %.16f %.16f\n", d1, getbed64((const char *)buf, 16)); } static void ledumpall(void) @@ -98,8 +98,8 @@ static void ledumpall(void) (void)printf("getleu64: %016" PRIx64 " %016" PRIx64 " %016" PRIx64 " %016" PRIx64 "\n", (uint64_t) uL1, (uint64_t) uL2, (uint64_t) getleu64(buf, 0), (uint64_t) getleu64(buf, 8)); - (void)printf("getlef32: %f %f\n", f1, getlef32(buf, 24)); - (void)printf("getled64: %.16f %.16f\n", d1, getled64(buf, 16)); + (void)printf("getlef32: %f %f\n", f1, getlef32((const char *)buf, 24)); + (void)printf("getled64: %.16f %.16f\n", d1, getled64((const char *)buf, 16)); } struct unsigned_test @@ -160,8 +160,8 @@ int main(int argc, char *argv[]) sL2 = getbes64(buf, 8); uL1 = getbeu64(buf, 0); uL2 = getbeu64(buf, 8); - f1 = getbef32(buf, 24); - d1 = getbed64(buf, 16); + f1 = getbef32((const char *)buf, 24); + d1 = getbed64((const char *)buf, 16); sb1 = getsb(buf, 0); sb2 = getsb(buf, 8); ub1 = getub(buf, 0); @@ -178,8 +178,8 @@ int main(int argc, char *argv[]) sL2 = getles64(buf, 8); uL1 = getleu64(buf, 0); uL2 = getleu64(buf, 8); - f1 = getlef32(buf, 24); - d1 = getled64(buf, 16); + f1 = getlef32((const char *)buf, 24); + d1 = getled64((const char *)buf, 16); /*@+type@*/ if (!quiet) { |