diff options
Diffstat (limited to 'src/getla.c')
-rw-r--r-- | src/getla.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/getla.c b/src/getla.c index c735956..51791c4 100644 --- a/src/getla.c +++ b/src/getla.c | |||
@@ -15,15 +15,10 @@ | |||
15 | along with vmod-tbf. If not, see <http://www.gnu.org/licenses/>. | 15 | along with vmod-tbf. If not, see <http://www.gnu.org/licenses/>. |
16 | */ | 16 | */ |
17 | #define _BSD_SOURCE | 17 | #define _BSD_SOURCE |
18 | #include <config.h> | 18 | #include "tbf.h" |
19 | #include <stdlib.h> | ||
20 | #include <stdio.h> | ||
21 | #include <syslog.h> | ||
22 | #if defined(HAVE_SYSINFO) && defined(HAVE_SYS_SYSINFO_H) | 19 | #if defined(HAVE_SYSINFO) && defined(HAVE_SYS_SYSINFO_H) |
23 | # include <sys/sysinfo.h> | 20 | # include <sys/sysinfo.h> |
24 | #endif | 21 | #endif |
25 | #include "vrt.h" | ||
26 | #include "vcc_if.h" | ||
27 | 22 | ||
28 | static double | 23 | static double |
29 | sys_getla(int what) | 24 | sys_getla(int what) |
@@ -50,8 +45,8 @@ sys_getla(int what) | |||
50 | #endif | 45 | #endif |
51 | } | 46 | } |
52 | 47 | ||
53 | double | 48 | VCL_REAL |
54 | vmod_getla(struct sess *sp, int what) | 49 | vmod_getla(MOD_CTX ctx, VCL_INT what) |
55 | { | 50 | { |
56 | switch (what) { | 51 | switch (what) { |
57 | case 1: | 52 | case 1: |