--- /n/sources/plan9/sys/src/cmd/cc/compat.c Sat Jan 10 10:00:05 2015 +++ /sys/src/cmd/cc/compat.c Sun Jun 28 00:00:00 2026 @@ -5,19 +5,19 @@ * fake mallocs */ void* -malloc(ulong n) +malloc(uintptr n) { return alloc(n); } void* -calloc(ulong m, ulong n) +calloc(uintptr m, uintptr n) { return alloc(m*n); } void* -realloc(void*, ulong) +realloc(void*, uintptr) { fprint(2, "realloc called\n"); abort(); @@ -31,7 +31,7 @@ /* needed when profiling */ void* -mallocz(ulong size, int clr) +mallocz(uintptr size, int clr) { void *v; @@ -42,6 +42,6 @@ } void -setmalloctag(void*, ulong) +setmalloctag(void*, uintptr) { }