git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed places where char* was used in place of const char*
[tpg/acess2.git]
/
Kernel
/
lib.c
diff --git
a/Kernel/lib.c
b/Kernel/lib.c
index
b9e9734
..
bc32a0c
100644
(file)
--- a/
Kernel/lib.c
+++ b/
Kernel/lib.c
@@
-36,7
+36,7
@@
char **str_split(const char *__str, char __ch);
int DivUp(int num, int dem);
Sint64 timestamp(int sec, int mins, int hrs, int day, int month, int year);
int DivUp(int num, int dem);
Sint64 timestamp(int sec, int mins, int hrs, int day, int month, int year);
-
U
int rand(void);
+
int rand(void);
int CheckString(char *String);
int CheckMem(void *Mem, int NumBytes);
int CheckString(char *String);
int CheckMem(void *Mem, int NumBytes);
@@
-292,9
+292,8
@@
int vsnprintf(char *__s, size_t __maxlen, const char *__format, va_list args)
itoa(p, val, 10, minSize, pad);
goto printString;
case 'X':
itoa(p, val, 10, minSize, pad);
goto printString;
case 'X':
- #if BITS == 64
- isLongLong = 1; // TODO: Handle non-x86 64-bit archs
- #endif
+ if(BITS == 64)
+ isLongLong = 1; // TODO: Handle non-x86 64-bit archs
GETVAL();
itoa(p, val, 16, minSize, pad);
goto printString;
GETVAL();
itoa(p, val, 16, minSize, pad);
goto printString;
@@
-427,12
+426,12
@@
Uint8 ByteSum(void *Ptr, int Size)
}
/**
}
/**
- * \fn
Uin
t strlen(const char *__str)
+ * \fn
size_
t strlen(const char *__str)
* \brief Get the length of string
*/
* \brief Get the length of string
*/
-
Uin
t strlen(const char *__str)
+
size_
t strlen(const char *__str)
{
{
-
Uint
ret = 0;
+
size_t
ret = 0;
while(*__str++) ret++;
return ret;
}
while(*__str++) ret++;
return ret;
}
@@
-722,11
+721,10
@@
Sint64 timestamp(int sec, int mins, int hrs, int day, int month, int year)
}
/**
}
/**
- * \fn
U
int rand()
+ * \fn int rand()
* \brief Pseudo random number generator
* \brief Pseudo random number generator
- * \note Unknown effectiveness (made up on the spot)
*/
*/
-
U
int rand(void)
+int rand(void)
{
#if 0
static Uint state = RANDOM_SEED;
{
#if 0
static Uint state = RANDOM_SEED;
UCC
git Repository :: git.ucc.asn.au