]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/acl/external/kerberos_ldap_group/support_log.cc
aa8cafa747d3d2f169e5a33fd2a014ebd7bfa722
2 * Copyright (C) 1996-2020 The Squid Software Foundation and contributors
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
10 * -----------------------------------------------------------------------------
12 * Author: Markus Moeller (markus_moeller at compuserve.com)
14 * Copyright (C) 2007 Markus Moeller. All rights reserved.
16 * This program is free software; you can redistribute it and/or modify
17 * it under the terms of the GNU General Public License as published by
18 * the Free Software Foundation; either version 2 of the License, or
19 * (at your option) any later version.
21 * This program is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 * GNU General Public License for more details.
26 * You should have received a copy of the GNU General Public License
27 * along with this program; if not, write to the Free Software
28 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
30 * -----------------------------------------------------------------------------
43 static time_t last_t
= 0;
47 gettimeofday(&now
, NULL
);
48 if (now
.tv_sec
!= last_t
) {
50 time_t tmp
= now
.tv_sec
;
52 strftime(buf
, 127, "%Y/%m/%d %H:%M:%S", tm
);
61 /* under gcc a macro define in compat/debug.h is used instead */
69 va_start(args
, format
);
70 vfprintf(stderr
, format
, args
);
75 error(char *format
,...)
78 va_start(args
, format
);
79 vfprintf(stderr
, format
, args
);
84 warn(char *format
,...)
87 va_start(args
, format
);
88 vfprintf(stderr
, format
, args
);