From 5b2b627c33a071f8420836f75c5b92897e49d68a Mon Sep 17 00:00:00 2001 From: laforge Date: Sat, 9 Sep 2000 18:35:26 +0000 Subject: config file added --- ulogd/conffile.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'ulogd/conffile.h') diff --git a/ulogd/conffile.h b/ulogd/conffile.h index 773c932..8429bbb 100644 --- a/ulogd/conffile.h +++ b/ulogd/conffile.h @@ -1,7 +1,7 @@ /* config file parser functions * (C) 2000 by Harald Welte * - * $Id: conffile.h,v 1.1 2000/09/09 08:36:05 laforge Exp $ + * $Id: conffile.h,v 1.2 2000/09/09 18:27:23 laforge Exp $ * * This code is distributed under the terms of GNU GPL */ @@ -17,7 +17,7 @@ enum { ERROOM, /* out of memory */ ERRMULT, /* non-multiple option occured more than once */ ERRMAND, /* mandatory option not found */ - ERRUNKN, /* unknown key */ + ERRUNKN, /* unknown config key */ }; /* maximum line lenght of config file entries */ @@ -25,8 +25,9 @@ enum { /* maximum lenght of config key name */ #define CONFIG_KEY_LEN 30 -#define CONFIG_VAL_STRING_LEN 225 +/* maximum lenght of string config value */ +#define CONFIG_VAL_STRING_LEN 225 /* valid config types */ #define CONFIG_TYPE_INT 0x0001 @@ -51,7 +52,7 @@ typedef struct config_entry { } config_entry_t; /* if an error occurs, config_errce is set to the erroneous ce */ -config_entry_t *config_errce = NULL; +config_entry_t *config_errce; int config_parse_file(const char *fname, int final); int config_register_key(config_entry_t *ce); -- cgit v1.2.3