Cleaning up code by adding prototypes or include files where required.

This commit is contained in:
skarg
2010-08-17 13:51:56 +00:00
parent 8a67273f9b
commit bc0de6b71f
20 changed files with 47 additions and 18 deletions
+2 -1
View File
@@ -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;
+2 -2
View File
@@ -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)
{
+2 -2
View File
@@ -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