CSF throws a warning on install, ignore it?

Richard G

Verified User
Joined
Jul 6, 2008
Messages
12,747
Location
Maastricht
When installing CSF manually I encounter this, but it's not clear to me if this is important, needs a fix or something.
Code:
mode of '/usr/local/directadmin/plugins/csf/admin/index.raw' retained as 0644 (rw-r--r--)
mode of '/usr/local/directadmin/plugins/csf/plugin.conf' retained as 0644 (rw-r--r--)
csf.c:11:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
 main ()
 ^~~~
csf.c: In function ‘main’:
csf.c:21:2: warning: implicit declaration of function ‘setenv’; did you mean ‘setpwent’? [-Wimplicit-function-declaration]
  setenv("CSF_RESELLER", "", 1);
  ^~~~~~
  setpwent
changed ownership of '/usr/local/directadmin/plugins/csf/scripts/uninstall.sh' from root:root to diradmin:diradmin

I presume since this is only a warning it's safe to ignore?
 
I think you should report this in their Configserver forums to let them know as well
 
It's not a big problem, but if you want to prevent it, add

#include <stdlib.h>

to the csf.c file.

Also change the main() to 'int main()' to prevent another warning.

It's not a problem because the parameters for setenv() in csf.c are valid according the definition in stdlib.h.
 
Back
Top