diff options
author | laforge <laforge> | 2004-04-24 15:49:03 +0000 |
---|---|---|
committer | laforge <laforge> | 2004-04-24 15:49:03 +0000 |
commit | 5a9f8859bc8926033d01d5ee5611c52eb86fb57e (patch) | |
tree | 428f176f450eb9b800fbcf6d38559e01f570d200 /ulogd/extensions | |
parent | 26e43dc09a2281620e560cded394bd13c6c8b274 (diff) |
- fix int/pointer issue
- use C99 initializers
Diffstat (limited to 'ulogd/extensions')
-rw-r--r-- | ulogd/extensions/ulogd_SYSLOG.c | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/ulogd/extensions/ulogd_SYSLOG.c b/ulogd/extensions/ulogd_SYSLOG.c index 9aeebf9..1be22d7 100644 --- a/ulogd/extensions/ulogd_SYSLOG.c +++ b/ulogd/extensions/ulogd_SYSLOG.c @@ -19,7 +19,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * $Id: ulogd_LOGEMU.c,v 1.15 2003/09/28 15:19:26 laforge Exp $ + * $Id$ * */ @@ -40,14 +40,20 @@ #define SYSLOG_LEVEL_DEFAULT "LOG_NOTICE" #endif -static config_entry_t facility_ce = { NULL, "facility", CONFIG_TYPE_STRING, - CONFIG_OPT_NONE, 0, - { string: SYSLOG_FACILITY_DEFAULT } }; +static config_entry_t facility_ce = { + .key = "facility", + .type = CONFIG_TYPE_STRING, + .options = CONFIG_OPT_NONE, + .u = { .string = SYSLOG_FACILITY_DEFAULT } +}; -static config_entry_t level_ce = { &facility_ce, "level", - CONFIG_TYPE_INT, CONFIG_OPT_NONE, 0, - { value: SYSLOG_LEVEL_DEFAULT } - }; +static config_entry_t level_ce = { + .next = &facility_ce, + .key = "level", + .type = CONFIG_TYPE_INT, + .options = CONFIG_OPT_NONE, + .u = { .string = SYSLOG_LEVEL_DEFAULT } +}; static int syslog_level, syslog_facility; |