X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/55e303ae13a4cf49d70f2294092726f2fffb9ef2..4a3eedf9ecc9bbe3f3a5c6ce5e53ad199d639d32:/osfmk/ppc/bcopytest.c diff --git a/osfmk/ppc/bcopytest.c b/osfmk/ppc/bcopytest.c index d93871f87..5903c43c4 100644 --- a/osfmk/ppc/bcopytest.c +++ b/osfmk/ppc/bcopytest.c @@ -1,11 +1,9 @@ -#include #include #include #include #include #include -#include #include #include #include @@ -50,14 +48,10 @@ void bcopytest(void); void bcopytest(void) { void *srcptr, *snkptr, *asrc, *asnk; - int bsrc, bsnk, size, iterations, i, ret, n; - unsigned int makerand, timein, timeout, ticks; + int bsrc, bsnk, size, i, ret, n; volatile int dbg = 0; unsigned int *sink, *source; - long long tottime, totbytes; - long long tottime2, totbytes2; - kern_return_t retr; db_printf("bcopy test\n"); @@ -453,8 +447,9 @@ void clrarea(unsigned int *source, unsigned int *sink) { return; } -void clrarea2(unsigned int *source, unsigned int *sink) { - +void +clrarea2(unsigned int *source, __unused unsigned int *sink) +{ unsigned int i; unsigned char *ss; @@ -560,7 +555,7 @@ int tstcopy4(void *src, void *snk, unsigned int lgn) { int tstcopy5(void *src, void *snk, unsigned int lgn) { - unsigned int i, crap; + unsigned int i = 0, crap; unsigned char ic, ec, oic, pc; oic = ((unsigned char *)snk)[0]; /* Original first sink character */ @@ -601,7 +596,7 @@ int tstcopy5(void *src, void *snk, unsigned int lgn) { } int dumbcopy(void *src, void *snk, unsigned int lgn) { - int i; + unsigned int i; char *p = (char *)snk; char *q = (char *)src;