#CFLAGS = -g -O2 -Wall
# Developer CFLAGS
-CFLAGS = -g -O0 -Wunused -Wall -ggdb -pedantic -Wshadow -Wmissing-declarations -Wno-long-long
+CFLAGS = -g -O0 -Wunused -Wall -ggdb -std=gnu99 -pedantic -Wshadow -Wmissing-declarations -Wno-long-long
CFLAGS = @MY_CFLAGS@ -I../include
#CFLAGS = -g -O2 -Wall
# Developer CFLAGS
-CFLAGS = -g -O0 -Wunused -Wall -ggdb -pedantic -Wshadow -Wmissing-declarations -Wno-long-long
+CFLAGS = -g -O0 -Wunused -Wall -ggdb -std=gnu99 -pedantic -Wshadow -Wmissing-declarations -Wno-long-long
CFLAGS += -I../include -DPREFIX=\"@prefix@\"
while (walker != NULL)
{
- if ((dlinkLength(&walker->free_list) == heap_p->elems_per_block))
+ if (dlinkLength(&walker->free_list) == heap_p->elems_per_block)
{
ballocFree(walker->elems, walker->alloc_size);
static uchar
c_us_default_flags(ConfigEntry *ce)
{
- ConfigEntry *flce;
-
if (userserv.enabled == 0)
return 1;
static uchar
c_cs_default_flags(ConfigEntry *ce)
{
- ConfigEntry *flce;
-
if (chanserv.enabled == 0)
return 1;
ilog(L_DEBUG2, "eventAdd(): Registering function for event: %d", event);
- dlinkAddTailAlloc(func, &event_table[event].func_list);
+ dlinkAddTailAlloc((void *)func, &event_table[event].func_list);
}
/* eventAddSpecial()
ilog(L_DEBUG2, "eventDelete(): Unregistering function for event: %d",
event);
- ret = dlinkFindDestroy(func, &event_table[event].func_list);
+ ret = dlinkFindDestroy((void *)func, &event_table[event].func_list);
if (ret == 0)
{
/* If there are function list entries, call them. */
DLINK_FOREACH(node2_p, event_table[eventq_p->event].func_list.head)
{
- func = node2_p->data;
+ func = (uchar (*) ())node2_p->data;
if (terminated == 1)
break;