• bick's avatar
    Add casts to fix strict compiler errors [-fpermissive] · 8f79a056
    bick authored
    When using g++ and enforcing strict compiler errors, this commit fixes the following:
    
    mongoose.c: In function ‘char* mg_fgets(char*, size_t, file*, char**)’:
    mongoose.c:2405:60: error: invalid conversion from ‘void*’ to ‘char*’ [-fpermissive]
    
    mongoose.c: In function ‘int set_ports_option(mg_context*)’:
    mongoose.c:4586:64: error: invalid conversion from ‘void*’ to ‘socket*’ [-fpermissive]
    
    mongoose.c: In function ‘void* worker_thread(void*)’:
    mongoose.c:5104:28: error: invalid conversion from ‘void*’ to ‘mg_context*’ [-fpermissive]
    
    mongoose.c: In function ‘void* master_thread(void*)’:
    mongoose.c:5220:28: error: invalid conversion from ‘void*’ to ‘mg_context*’ [-fpermissive]
    mongoose.c:5235:58: error: invalid conversion from ‘void*’ to ‘pollfd*’ [-fpermissive]
    8f79a056
Name
Last commit
Last update
build Loading commit data...
examples Loading commit data...
lua-5.2.1 Loading commit data...
test Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
UserManual.md Loading commit data...
main.c Loading commit data...
mod_lua.c Loading commit data...
mongoose.c Loading commit data...
mongoose.h Loading commit data...