Search
j0ke.net Open Build Service
>
Projects
>
ha
:
uplex
>
varnish2
> 2014-05-21_varnish.diff
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File 2014-05-21_varnish.diff of Package varnish2
--- shared_fetch.vcl 2014-05-21 19:41:49.012476279 +0200 +++ shared_fetch.vcl 2014-05-21 19:46:13.816197527 +0200 @@ -349,6 +349,7 @@ /* calc new obj.ttl */ if (ttl > 0) { + char ttl_string_buf[16]; nttl = randomize_ttl(ttl); if (nttl < expires_padding_thres) expires_padding = 0; Only in .: test Only in .: test.20140513 diff -rub 2014-05-21/vauth-c-functions.vcl ./vauth-c-functions.vcl --- 2014-05-21/vauth-c-functions.vcl 2014-05-21 19:41:49.014476367 +0200 +++ ./vauth-c-functions.vcl 2014-05-21 19:44:47.754388094 +0200 @@ -1,38 +1,18 @@ C{ -/* sparse declarations to avoid full header file inclusions */ - unsigned long TIM_mono_randseed(void); double TIM_mono(void); -double drand48(void); -double erand48(unsigned short xi[3]); - -/* Symbolic constants for the "access" routine: */ -#define R_OK 4 /* Test for Read permission */ -#define W_OK 2 /* Test for Write permission */ -#define X_OK 1 /* Test for eXecute permission */ -#define F_OK 0 /* Test for existence of File */ -extern int access(const char *, int); +#include <stdlib.h> +#include <fcntl.h> #include <time.h> - -extern long labs(long lval); -extern long atol(const char *str); - -extern int strncmp(const char *, const char *, size_t); -/* - * use thread-local storage in order to avoid memory management - */ -__thread char ttl_string_buf[16]; -__thread unsigned short xi[3]; -__thread unsigned short xi_inited; - -/* use of atoi() below */ - #include <stdlib.h> - +#include <string.h> #include <errno.h> +unsigned short xi[3]; +unsigned short xi_inited; + typedef void lbv_assert_f(const char *, const char *, int, const char *, int, int); extern lbv_assert_f *lbv_assert;