mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-12 03:37:23 +00:00
Added typecasts to avoid compiler warnings
This commit is contained in:
parent
fc242e107d
commit
2a3e3b984d
@ -43,9 +43,11 @@ fs_open(char *name, struct fs_file *file)
|
|||||||
{
|
{
|
||||||
struct fsdata_file_noconst *f;
|
struct fsdata_file_noconst *f;
|
||||||
|
|
||||||
for(f = (struct fsdata_file_noconst *)FS_ROOT; f != NULL; f = (struct fsdata_file_noconst *)f->next) {
|
for(f = (struct fsdata_file_noconst *)FS_ROOT;
|
||||||
if(!strcmp(name, f->name)) {
|
f != NULL;
|
||||||
file->data = f->data;
|
f = (struct fsdata_file_noconst *)f->next) {
|
||||||
|
if(!strcmp(name, (char *)f->name)) {
|
||||||
|
file->data = (char *)f->data;
|
||||||
file->len = f->len;
|
file->len = f->len;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user