diff options
author | Timo Teräs <timo.teras@iki.fi> | 2010-11-08 15:01:09 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2010-11-08 15:01:09 +0200 |
commit | c6a8db7d5385b773a8cfedb41444f348d984b383 (patch) | |
tree | 2abcc4cea752f42c31e6938d6391117675d0971e | |
parent | 1c23dbef0405d8ca9776737a209fb5b549219bc8 (diff) | |
download | squark-c6a8db7d5385b773a8cfedb41444f348d984b383.tar.bz2 squark-c6a8db7d5385b773a8cfedb41444f348d984b383.tar.xz |
blob, config.[ch]: add missing files and includes
-rw-r--r-- | src/blob.c | 1 | ||||
-rw-r--r-- | src/config.c | 13 | ||||
-rw-r--r-- | src/config.h | 10 |
3 files changed, 24 insertions, 0 deletions
@@ -1,5 +1,6 @@ #include <time.h> #include <ctype.h> +#include <malloc.h> #include <string.h> #include <arpa/inet.h> diff --git a/src/config.c b/src/config.c new file mode 100644 index 0000000..4ed3f4a --- /dev/null +++ b/src/config.c @@ -0,0 +1,13 @@ +/* config.c - Squid User Authentication and Rating Kit + * + * Copyright (C) 2010 Timo Teräs <timo.teras@iki.fi> + * All rights reserved. + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 as published + * by the Free Software Foundation. See http://www.gnu.org/ for details. + */ + +const char *squark_version = SQUARK_VERSION; +const char *squark_config = CONFDIR "/squark.conf"; +const char *squark_dbname = LIBDIR "/squark.db"; diff --git a/src/config.h b/src/config.h new file mode 100644 index 0000000..933a663 --- /dev/null +++ b/src/config.h @@ -0,0 +1,10 @@ +#ifndef CONFIG_H +#define CONFIG_H + +#define DEFAULT_LOGOUT_TIMEOUT (15*60) /* seconds */ + +extern const char *squark_version; +extern const char *squark_config; +extern const char *squark_dbname; + +#endif |