diff -urp aim9.orig/creat-clo.c aim9/creat-clo.c --- aim9.orig/creat-clo.c 2002-04-22 15:25:16.000000000 -0700 +++ aim9/creat-clo.c 2005-07-11 10:20:13.000000000 -0700 @@ -352,7 +352,7 @@ page_test(char *argv, */ oldbrk = sbrk(0); /* get current break value */ newbrk = sbrk(1024 * 1024); /* move up 1 megabyte */ - if ((int)newbrk == -1) { + if (newbrk == (void *)-1L) { perror("\npage_test"); /* tell more info */ fprintf(stderr, "page_test: Unable to do initial sbrk.\n"); return (-1); @@ -365,7 +365,7 @@ page_test(char *argv, newbrk = sbrk(-4096 * 16); /* deallocate some space */ for (i = 0; i < 16; i++) { /* now get it back in pieces */ newbrk = sbrk(4096); /* Get pointer to new space */ - if ((int)newbrk == -1) { + if (newbrk == (void *)-1L) { perror("\npage_test"); /* tell more info */ fprintf(stderr, "page_test: Unable to do sbrk.\n"); @@ -406,7 +406,7 @@ brk_test(char *argv, */ oldbrk = sbrk(0); /* get old break value */ newbrk = sbrk(1024 * 1024); /* move up 1 megabyte */ - if ((int)newbrk == -1) { + if (newbrk == (void *)-1L) { perror("\nbrk_test"); /* tell more info */ fprintf(stderr, "brk_test: Unable to do initial sbrk.\n"); return (-1); @@ -419,7 +419,7 @@ brk_test(char *argv, newbrk = sbrk(-4096 * 16); /* deallocate some space */ for (i = 0; i < 16; i++) { /* allocate it back */ newbrk = sbrk(4096); /* 4k at a time (should be ~ 1 page) */ - if ((int)newbrk == -1) { + if (newbrk == (void *)-1L) { perror("\nbrk_test"); /* tell more info */ fprintf(stderr, "brk_test: Unable to do sbrk.\n"); diff -urp aim9.orig/pipe_test.c aim9/pipe_test.c --- aim9.orig/pipe_test.c 2002-04-22 15:25:16.000000000 -0700 +++ aim9/pipe_test.c 2005-07-11 10:21:19.000000000 -0700 @@ -493,8 +493,8 @@ readn(int fd, buf += result; /* update pointer */ if (--count <= 0) { fprintf(stderr, - "\nMaximum iterations exceeded in readn(%d, %#x, %d)", - fd, (unsigned)buf, size); + "\nMaximum iterations exceeded in readn(%d, %p, %d)", + fd, buf, size); return (-1); } } /* and loop */ @@ -523,8 +523,8 @@ writen(int fd, buf += result; /* update pointer */ if (--count <= 0) { /* handle too many loops */ fprintf(stderr, - "\nMaximum iterations exceeded in writen(%d, %#x, %d)", - fd, (unsigned)buf, size); + "\nMaximum iterations exceeded in writen(%d, %p, %d)", + fd, buf, size); return (-1); } } /* and loop */