diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-07-18 08:51:53 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-07-18 08:51:53 +0300 |
commit | dc19c0288af974dd861d61478804b1d7543730be (patch) | |
tree | d211e287444816ed0c034717fdf694928e6d5625 /src/dbrw.h | |
parent | 7b1b68c8a1c65ef33c39f494275eab91b6343658 (diff) | |
download | vmod-dbrw-dc19c0288af974dd861d61478804b1d7543730be.tar.gz vmod-dbrw-dc19c0288af974dd861d61478804b1d7543730be.tar.bz2 |
Remove leftover static data.
* src/dbrw.h (dbrw_connection) <matches,matchsize>: New members.
* src/vmod_dbrw.c (matches,matchsize): Remove static data.
(findmatch): Update accrodingly.
Diffstat (limited to 'src/dbrw.h')
-rw-r--r-- | src/dbrw.h | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -21,2 +21,3 @@ #include <syslog.h> +#include <regex.h> @@ -61,5 +62,7 @@ struct dbrw_config { struct dbrw_connection { - int state; - struct dbrw_config *conf; - void *data; + int state; /* Connection state */ + struct dbrw_config *conf; /* Pointer to the configuration data */ + regmatch_t *matches; /* Match map */ + size_t matchsize; /* Total number of entries in match map */ + void *data; /* Backend-specific data */ }; |