We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 053eb0e commit 3cb4e97Copy full SHA for 3cb4e97
src/vmod_ip2proxy.c
@@ -23,20 +23,10 @@
23
24
#include "cache/cache.h"
25
26
-typedef struct vmod_ip2proxy_data {
27
- time_t ip2proxy_db_ts; /* timestamp of the database file */
28
- IP2Proxy *ip2proxy_handle;
29
- pthread_mutex_t lock;
30
-} ip2proxy_data_t;
31
-
32
void
33
-ip2proxy_free(void *d)
+ip2proxy_free(void *ptr)
34
{
35
- ip2proxy_data_t *data = d;
36
37
- if (data->ip2proxy_handle != NULL) {
38
- IP2Proxy_close(data->ip2proxy_handle);
39
- }
+ IP2Proxy_close((IP2Proxy *)ptr);
40
}
41
42
VCL_VOID
0 commit comments