From 8991dbfb5491ffea860e2b0817b61a4f27b5ae8c Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Sat, 30 Jan 2016 16:18:20 +0100 Subject: [PATCH] Removed use of syslog. --- src/form.c | 4 +--- src/formelement.c | 2 -- src/formelementcheck.c | 4 +--- src/formelementhidden.c | 4 +--- src/formelementpassword.c | 4 +--- src/formelementselect.c | 4 +--- src/formelementstring.c | 4 +--- src/formelementsubmit.c | 4 +--- src/formelementtext.c | 4 +--- src/formelementtextarea.c | 4 +--- src/url.c | 8 +++----- 11 files changed, 12 insertions(+), 34 deletions(-) diff --git a/src/form.c b/src/form.c index 44a271b..9877658 100644 --- a/src/form.c +++ b/src/form.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 Lesser General Public @@ -20,8 +20,6 @@ #include #endif -#include - #include "commons.h" #include "form.h" #include "formelementstring.h" diff --git a/src/formelement.c b/src/formelement.c index 1198057..4cb664b 100644 --- a/src/formelement.c +++ b/src/formelement.c @@ -20,8 +20,6 @@ #include #endif -#include - #include "commons.h" #include "formelement.h" #include "tag.h" diff --git a/src/formelementcheck.c b/src/formelementcheck.c index c5ed670..c436de2 100644 --- a/src/formelementcheck.c +++ b/src/formelementcheck.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 Lesser General Public @@ -20,8 +20,6 @@ #include #endif -#include - #include "commons.h" #include "tag.h" #include "formelementcheck.h" diff --git a/src/formelementhidden.c b/src/formelementhidden.c index abf0ce0..1d048cc 100644 --- a/src/formelementhidden.c +++ b/src/formelementhidden.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 Lesser General Public @@ -20,8 +20,6 @@ #include #endif -#include - #include "commons.h" #include "tag.h" #include "formelementhidden.h" diff --git a/src/formelementpassword.c b/src/formelementpassword.c index bf06644..3fc82d9 100644 --- a/src/formelementpassword.c +++ b/src/formelementpassword.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 Lesser General Public @@ -20,8 +20,6 @@ #include #endif -#include - #include "commons.h" #include "tag.h" #include "formelementpassword.h" diff --git a/src/formelementselect.c b/src/formelementselect.c index 4af569a..48683ed 100644 --- a/src/formelementselect.c +++ b/src/formelementselect.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 Lesser General Public @@ -20,8 +20,6 @@ #include #endif -#include - #include "commons.h" #include "tag.h" #include "formelementselect.h" diff --git a/src/formelementstring.c b/src/formelementstring.c index 50ca759..64afea2 100644 --- a/src/formelementstring.c +++ b/src/formelementstring.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 Lesser General Public @@ -20,8 +20,6 @@ #include #endif -#include - #include "commons.h" #include "tag.h" #include "formelementstring.h" diff --git a/src/formelementsubmit.c b/src/formelementsubmit.c index 6cc0d3f..27d1508 100644 --- a/src/formelementsubmit.c +++ b/src/formelementsubmit.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 Lesser General Public @@ -20,8 +20,6 @@ #include #endif -#include - #include "commons.h" #include "tag.h" #include "formelementsubmit.h" diff --git a/src/formelementtext.c b/src/formelementtext.c index 425df8b..1eedb40 100644 --- a/src/formelementtext.c +++ b/src/formelementtext.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 Lesser General Public @@ -20,8 +20,6 @@ #include #endif -#include - #include "commons.h" #include "tag.h" #include "formelementtext.h" diff --git a/src/formelementtextarea.c b/src/formelementtextarea.c index f62a8db..695f129 100644 --- a/src/formelementtextarea.c +++ b/src/formelementtextarea.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 Lesser General Public @@ -20,8 +20,6 @@ #include #endif -#include - #include "commons.h" #include "tag.h" #include "formelementtextarea.h" diff --git a/src/url.c b/src/url.c index 26c475f..6e99a2e 100644 --- a/src/url.c +++ b/src/url.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 Lesser General Public @@ -20,8 +20,6 @@ #include #endif -#include - #include "url.h" static void zak_cgi_url_class_init (ZakCgiUrlClass *class); @@ -148,8 +146,8 @@ zak_cgi_url_dispatch (ZakCgiUrl *url) if (regex == NULL || error != NULL) { - syslog (LOG_MAKEPRI(LOG_SYSLOG, LOG_DEBUG), "Error on creating regex: %s.", - error->message != NULL ? error->message : "no details"); + g_warning ("Error on creating regex: %s.", + error->message != NULL ? error->message : "no details"); return; } -- 2.49.0