This fixes some warnings and an error when compiling, where functions are not declared or have the wrong declaration.
In addition it updates the makefile to respect CC, CFLAGS and LIBS from the environment by adding to them instead of overwriting them. This makes it easier for us to create a FreeBSD port for mlogc-ng.
This fixes some warnings and an error when compiling, where functions are not declared or have the wrong declaration.
In addition it updates the makefile to respect CC, CFLAGS and LIBS from the environment by adding to them instead of overwriting them. This makes it easier for us to create a FreeBSD port for mlogc-ng.