X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Flib.c;h=db0145057cd18b754b4d028e2b2a79a89d3a1877;hb=25f19babe7a0ab75d04ff7e6f98f7bcb65fb8941;hp=e5a024780f7792f91b878a89028523c5eb195512;hpb=a4ce2e60f783c9e71447edc03f20f937b8abf35a;p=tpg%2Facess2.git diff --git a/Kernel/lib.c b/Kernel/lib.c index e5a02478..db014505 100644 --- a/Kernel/lib.c +++ b/Kernel/lib.c @@ -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; }