Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(242)

Unified Diff: tests/mmap/mmap_prot_test.c

Issue 1148953002: Cast pointers used with %p format strings to void * (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tests/mmap/mmap_prot_test.c
diff --git a/tests/mmap/mmap_prot_test.c b/tests/mmap/mmap_prot_test.c
index ab1edd92ae051028f063c9c062de4d92ae244a0c..02ae2300af149f337c0bdc21ffff5997dfa41441 100644
--- a/tests/mmap/mmap_prot_test.c
+++ b/tests/mmap/mmap_prot_test.c
@@ -51,7 +51,7 @@ static void check_addr_is_unreadable(volatile char *addr) {
char value = *addr;
/* If we reach here, the assertion failed. */
fprintf(stderr, "Address %p was readable, and contained %i\n",
- addr, value);
+ (void *) addr, value);
exit(1);
}
/*
@@ -80,7 +80,7 @@ static void check_addr_is_unwritable(volatile char *addr, char value) {
*addr = value;
/* If we reach here, the assertion failed. */
fprintf(stderr, "Address %p was writable, %i was written\n",
- addr, value);
+ (void *) addr, value);
exit(1);
}
/*
@@ -149,7 +149,7 @@ struct prot_access_specs {
int test_prot_access(int fd, size_t map_size, void *test_spec) {
struct prot_access_specs *spec = (struct prot_access_specs *) test_spec;
char *addr;
-
+
addr = (char *) mmap(NULL,
map_size,
spec->map_prot,
« no previous file with comments | « tests/libc/posix_memalign.c ('k') | tests/mmap/mmap_test.cc » ('j') | tests/mmap/mmap_test.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698