summaryrefslogtreecommitdiff
path: root/main_syslog.c
diff options
context:
space:
mode:
Diffstat (limited to 'main_syslog.c')
-rw-r--r--main_syslog.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/main_syslog.c b/main_syslog.c
index 29df99c..2ac99be 100644
--- a/main_syslog.c
+++ b/main_syslog.c
@@ -35,12 +35,12 @@
int main(int argc, char *argv[])
{
- dbg_status_t status = dbg_init(DBG_FLAG_OUTPUT_TO_SYSLOG,
- DBG_OPTION_SYSLOG_HOST, "localhost",
- DBG_OPTION_SYSLOG_PORT, 514,
- DBG_OPTION_END);
+ hug_status_t status = hug_init(HUG_FLAG_OUTPUT_TO_SYSLOG,
+ HUG_OPTION_SYSLOG_HOST, "localhost",
+ HUG_OPTION_SYSLOG_PORT, 514,
+ HUG_OPTION_END);
- if(status != DBG_STATUS_OK) {
+ if(status != HUG_STATUS_OK) {
printf("Error: %d\n", status);
return 1;
}
@@ -51,7 +51,7 @@ int main(int argc, char *argv[])
DEBUG(foo, "Or are we %d?", 42);
- dbg_close();
+ hug_close();
return 0;
}