X-Git-Url: https://git.realraum.at/?a=blobdiff_plain;f=door_daemon%2Flog_targets.h;h=8db38123c72e428aad091d33d7db96da3449f444;hb=39259fde0268bf1faad1f79b5a3c61b393c5cc36;hp=0ea8e83c12f356362ebf89cd8f8b2ba6d6f7cf6f;hpb=6773f3ff20c2826dc0f32e4d20b73572769f6e40;p=svn42.git
diff --git a/door_daemon/log_targets.h b/door_daemon/log_targets.h
index 0ea8e83..8db3812 100644
--- a/door_daemon/log_targets.h
+++ b/door_daemon/log_targets.h
@@ -20,8 +20,9 @@
* This file is part of uAnytun.
*
* uAnytun is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 3 as
- * published by the Free Software Foundation.
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * any later version.
*
* uAnytun is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -32,6 +33,30 @@
* along with uAnytun. If not, see .
*/
+#ifndef UANYTUN_log_targets_h_INCLUDED
+#define UANYTUN_log_targets_h_INCLUDED
+
+#include
+
+static char* get_time_formatted()
+{
+ char* time_string;
+ time_t t = time(NULL);
+ if(t < 0)
+ time_string = "