Cleaning up code by adding prototypes or include files where required.
This commit is contained in:
@@ -42,6 +42,7 @@
|
||||
#include "rp.h"
|
||||
#include "wp.h"
|
||||
#include "handlers.h"
|
||||
#include "bacfile.h"
|
||||
|
||||
typedef struct {
|
||||
uint32_t instance;
|
||||
@@ -164,7 +165,7 @@ static long fsize(
|
||||
return (size);
|
||||
}
|
||||
|
||||
static unsigned bacfile_file_size(
|
||||
unsigned bacfile_file_size(
|
||||
uint32_t object_instance)
|
||||
{
|
||||
char *pFilename = NULL;
|
||||
|
||||
@@ -182,7 +182,7 @@ bool Multistate_Input_Present_Value_Set(
|
||||
return status;
|
||||
}
|
||||
|
||||
char *Multistate_Input_Description(
|
||||
static char *Multistate_Input_Description(
|
||||
uint32_t object_instance)
|
||||
{
|
||||
unsigned index = 0; /* offset from instance lookup */
|
||||
@@ -268,7 +268,7 @@ bool Multistate_Input_Name_Set(
|
||||
return status;
|
||||
}
|
||||
|
||||
char *Multistate_Input_State_Text(
|
||||
static char *Multistate_Input_State_Text(
|
||||
uint32_t object_instance,
|
||||
uint32_t state_index)
|
||||
{
|
||||
|
||||
@@ -45,7 +45,7 @@ DEBUGGING = -g
|
||||
endif
|
||||
# put all the flags together
|
||||
CFLAGS = -Wall $(DEBUGGING) $(OPTIMIZATION) $(INCLUDES) $(DEFINES)
|
||||
LFLAGS = -Wl,-Map=$(TARGET).map,$(LIBRARIES)
|
||||
LFLAGS = -Wl,$(LIBRARIES)
|
||||
|
||||
SRCS = main.c
|
||||
|
||||
@@ -70,6 +70,6 @@ depend:
|
||||
${CC} -MM ${CFLAGS} *.c >> .depend
|
||||
|
||||
clean:
|
||||
rm -f core ${TARGET_BIN} ${OBJS} ${BACNET_LIB_TARGET} $(TARGET).map
|
||||
rm -f core ${TARGET_BIN} ${OBJS} ${BACNET_LIB_TARGET}
|
||||
|
||||
include: .depend
|
||||
|
||||
Reference in New Issue
Block a user