aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunk@stsci.edu>2011-04-19 08:30:40 -0400
committerJoseph Hunkeler <jhunk@stsci.edu>2011-04-19 08:30:40 -0400
commit2a204c75574354886fad6567375542a8c0fff921 (patch)
tree2429a7e0af57a667eefd7f302c23ce0ca5526a33
parent92f5117ad21883e031137fa913489bb0c84396df (diff)
downloadduser-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.c2
-rw-r--r--cfg.h5
-rw-r--r--duser.c1
-rw-r--r--duser.h3
4 files changed, 6 insertions, 5 deletions
diff --git a/cfg.c b/cfg.c
index 62a9a41..b30bd3f 100644
--- a/cfg.c
+++ b/cfg.c
@@ -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)
diff --git a/cfg.h b/cfg.h
index 6b42f41..d3814f3 100644
--- a/cfg.h
+++ b/cfg.h
@@ -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
diff --git a/duser.c b/duser.c
index 390600e..48a96f4 100644
--- a/duser.c
+++ b/duser.c
@@ -38,6 +38,7 @@
# define HAVE_STRCASESTR
#endif
+#include "cfg.h"
#include "duser.h"
char list_path[PATH_MAX];
diff --git a/duser.h b/duser.h
index 1a93ebe..8b8c993 100644
--- a/duser.h
+++ b/duser.h
@@ -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);