From aadcd5e43dafd05b45e894b9300a4d834e7e2539 Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Sat, 26 Mar 2016 12:22:53 +0100 Subject: [PATCH] Removed syslog (closes #973). --- tests/cookies.c | 5 ++--- tests/env.c | 5 ++--- tests/session.c | 4 +--- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/tests/cookies.c b/tests/cookies.c index 8d755c0..77deaec 100644 --- a/tests/cookies.c +++ b/tests/cookies.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2015 Andrea Zagli + * Copyright (C) 2015-2016 Andrea Zagli * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public @@ -16,7 +16,6 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include #include #include @@ -61,7 +60,7 @@ main (int argc, char *argv[]) "\n%s", zak_cgi_main_set_cookie ("SECONDO", "il secondo cookie", NULL, NULL, "/", FALSE, TRUE)); - syslog (LOG_MAKEPRI(LOG_SYSLOG, LOG_DEBUG), "header: %s", header->str); + g_message ("header: %s", header->str); zak_cgi_main_out (header->str, str->str); g_string_free (str, TRUE); diff --git a/tests/env.c b/tests/env.c index 77552bb..c56c557 100644 --- a/tests/env.c +++ b/tests/env.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2015 Andrea Zagli + * Copyright (C) 2015-2016 Andrea Zagli * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public @@ -16,7 +16,6 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include #include #include @@ -134,7 +133,7 @@ main (int argc, char *argv[]) env = zak_cgi_main_get_stdin (zakcgimain); zak_cgi_main_parse_stdin (env, NULL); - /*syslog (LOG_MAKEPRI(LOG_SYSLOG, LOG_DEBUG), "stdin: %s", env);*/ + /*g_message ("stdin: %s", env);*/ if (env != NULL) { g_string_append_printf (str, diff --git a/tests/session.c b/tests/session.c index ef18155..bdbe0b2 100644 --- a/tests/session.c +++ b/tests/session.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2015 Andrea Zagli + * Copyright (C) 2015-2016 Andrea Zagli * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public @@ -16,8 +16,6 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include - #include #include -- 2.49.0