File 2014-05-21_varnish.diff of Package varnish2 (Revision 8c3c2bcd07e2459364b846d8e9c1a9a1)
Currently displaying revision 8c3c2bcd07e2459364b846d8e9c1a9a1, show latest
x
1
--- shared_fetch.vcl 2014-05-21 19:41:49.012476279 +0200
2
+++ shared_fetch.vcl 2014-05-21 19:46:13.816197527 +0200
3
4
5
/* calc new obj.ttl */
6
if (ttl > 0) {
7
+ char ttl_string_buf[16];
8
nttl = randomize_ttl(ttl);
9
if (nttl < expires_padding_thres)
10
expires_padding = 0;
11
Only in .: test
12
Only in .: test.20140513
13
diff -rub 2014-05-21/vauth-c-functions.vcl ./vauth-c-functions.vcl
14
--- 2014-05-21/vauth-c-functions.vcl 2014-05-21 19:41:49.014476367 +0200
15
+++ ./vauth-c-functions.vcl 2014-05-21 19:44:47.754388094 +0200
16
17
C{
18
19
-/* sparse declarations to avoid full header file inclusions */
20
-
21
unsigned long TIM_mono_randseed(void);
22
double TIM_mono(void);
23
-double drand48(void);
24
-double erand48(unsigned short xi[3]);
25
-
26
-/* Symbolic constants for the "access" routine: */
27
-#define R_OK 4 /* Test for Read permission */
28
-#define W_OK 2 /* Test for Write permission */
29
-#define X_OK 1 /* Test for eXecute permission */
30
-#define F_OK 0 /* Test for existence of File */
31
-extern int access(const char *, int);
32
33
+#include <stdlib.h>
34
+#include <fcntl.h>
35
#include <time.h>
36
-
37
-extern long labs(long lval);
38
-extern long atol(const char *str);
39
-
40
-extern int strncmp(const char *, const char *, size_t);
41
-/*
42
- * use thread-local storage in order to avoid memory management
43
- */
44
-__thread char ttl_string_buf[16];
45
-__thread unsigned short xi[3];
46
-__thread unsigned short xi_inited;
47
-
48
-/* use of atoi() below */
49
-
50
#include <stdlib.h>
51
-
52
+#include <string.h>
53
#include <errno.h>
54
55
+unsigned short xi[3];
56
+unsigned short xi_inited;
57
+
58
typedef void lbv_assert_f(const char *, const char *, int, const char *,
59
int, int);
60
extern lbv_assert_f *lbv_assert;
61