diff options
author | Joseph Hunkeler <jhunk@stsci.edu> | 2011-04-19 08:30:40 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunk@stsci.edu> | 2011-04-19 08:30:40 -0400 |
commit | 2a204c75574354886fad6567375542a8c0fff921 (patch) | |
tree | 2429a7e0af57a667eefd7f302c23ce0ca5526a33 | |
parent | 92f5117ad21883e031137fa913489bb0c84396df (diff) | |
download | duser-2a204c75574354886fad6567375542a8c0fff921.tar.gz |
cfg.c now depends on cfg.h
duser.c depends on cfg.h
Removed cfg prototypes from duser.h
-rw-r--r-- | cfg.c | 2 | ||||
-rw-r--r-- | cfg.h | 5 | ||||
-rw-r--r-- | duser.c | 1 | ||||
-rw-r--r-- | duser.h | 3 |
4 files changed, 6 insertions, 5 deletions
@@ -26,8 +26,8 @@ #include <ctype.h> #include <errno.h> #include "duser.h" +#include "cfg.h" -#define CFG_MAX 255 FILE *cfgfp; int cfg_open(const char* filename) @@ -20,7 +20,10 @@ #ifndef CFG_H #define CFG_H + +#define CFG_MAX 255 int cfg_open(const char* filename); void cfg_close(); -int cfg_get_key(char* val, char* key); +int cfg_get_key(char* val, const char* key); + #endif @@ -38,6 +38,7 @@ # define HAVE_STRCASESTR #endif +#include "cfg.h" #include "duser.h" char list_path[PATH_MAX]; @@ -48,9 +48,6 @@ typedef struct record_t int pad3; } record_t; -int cfg_open(const char* filename); -void cfg_close(); -int cfg_get_key(char* val, const char* key); int logcleanup(); int COM(const char* func, char *format, ...); record_t* find_in_file(const char* filename, const char* needle); |