mirror of
https://github.com/Maschell/dynamic_libs.git
synced 2024-11-13 00:15:15 +01:00
Fix compiler warnings
These are the two warnings that I fixed: /src/dynamic_libs/os_functions.c: In function '_os_find_export': /src/dynamic_libs/os_functions.c:171:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < sizeof(a) - 1; i++) ^ /src/dynamic_libs/os_functions.c:177:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < sizeof(b) - 1; i++) ^
This commit is contained in:
parent
d2f15cc9b6
commit
7151534641
@ -166,7 +166,7 @@ void _os_find_export(u32 handle, const char *funcName, void *funcPointer)
|
||||
*/
|
||||
char buf[256], *bufp = buf;
|
||||
const char a[] = "Function ", b[] = " is NULL", *p;
|
||||
int i;
|
||||
unsigned int i;
|
||||
|
||||
for (i = 0; i < sizeof(a) - 1; i++)
|
||||
*bufp++ = a[i];
|
||||
|
Loading…
Reference in New Issue
Block a user