X-Git-Url: https://git.syn-net.org/?p=debian%2Fuanytun.git;a=blobdiff_plain;f=src%2Flog_targets.h;h=8db38123c72e428aad091d33d7db96da3449f444;hp=0ea8e83c12f356362ebf89cd8f8b2ba6d6f7cf6f;hb=e3f8e33112e2191999c6d6f6b6a767c72db800a0;hpb=b81b2c1954fe3e3317e6fa260c5ffdc9eeee966c diff --git a/src/log_targets.h b/src/log_targets.h index 0ea8e83..8db3812 100644 --- a/src/log_targets.h +++ b/src/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 = "