Commit 4c88e8d6 authored by Scott Bauer's avatar Scott Bauer
Browse files

fixed all the warnings about pointer types


Signed-off-by: default avatarScott Bauer <sbauer@node0.xcap-ipc.fastnet.apt.emulab.net>
parent b19e7af2
...@@ -68,7 +68,7 @@ static int get_mem_region_beta(int fd, unsigned long **ptr) ...@@ -68,7 +68,7 @@ static int get_mem_region_beta(int fd, unsigned long **ptr)
return 0; return 0;
} }
static int connect_mem_regions(int fd2, unsigned long *ptr) static int connect_mem_regions(int fd2, unsigned long **ptr)
{ {
long ret = -1; long ret = -1;
ret = ioctl(fd2, BETA_CONNECT_SHARED_MEM, ptr); ret = ioctl(fd2, BETA_CONNECT_SHARED_MEM, ptr);
...@@ -134,13 +134,13 @@ int main(int argc, char **argv) ...@@ -134,13 +134,13 @@ int main(int argc, char **argv)
if(get_mem_region_beta(beta1, &ptr)) if(get_mem_region_beta(beta1, &ptr))
goto cleanup; goto cleanup;
printf_v("[*] Got ptr %lx asking kland to take ptr from uland: %lx\n", ptr, &ptr); printf_v("[*] Got ptr %p asking kland to take ptr from uland: %p\n", ptr, &ptr);
printf_v("[*] Getting memory region of alloc'd kernel mem from IPCBeta (2)\n"); printf_v("[*] Getting memory region of alloc'd kernel mem from IPCBeta (2)\n");
if(get_mem_region_beta(beta2, &ptr2)) if(get_mem_region_beta(beta2, &ptr2))
goto cleanup; goto cleanup;
printf_v("[*] Got ptr %lx asking kland to take ptr from uland: %lx\n", ptr2, &ptr2); printf_v("[*] Got ptr %p asking kland to take ptr from uland: %p\n", ptr2, &ptr2);
if(connect_mem_regions(beta2, &ptr)) if(connect_mem_regions(beta2, &ptr))
goto cleanup; goto cleanup;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment