X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Flib.c;h=db0145057cd18b754b4d028e2b2a79a89d3a1877;hb=b289025913a0e4573181155aeeaab37ed92cf525;hp=f6149652eeafd2285effc5254a47374f3d66841b;hpb=47e9dfd89189fc6b150bd6b20229cb047c7e0858;p=tpg%2Facess2.git diff --git a/Kernel/lib.c b/Kernel/lib.c index f6149652..db014505 100644 --- a/Kernel/lib.c +++ b/Kernel/lib.c @@ -2,7 +2,7 @@ * Acess2 * Common Library Functions */ -#include +#include // === CONSTANTS === #define RANDOM_SEED 0xACE55052 @@ -92,12 +92,12 @@ int strpos(const char *Str, char Ch) } /** - * \fn int ByteSum(void *Ptr, int Size) + * \fn Uint8 ByteSum(void *Ptr, int Size) * \brief Adds the bytes in a memory region and returns the sum */ -int ByteSum(void *Ptr, int Size) +Uint8 ByteSum(void *Ptr, int Size) { - int sum = 0; + Uint8 sum = 0; while(Size--) sum += *(Uint8*)Ptr++; return sum; }