diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-05-31 17:17:13 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-05-31 17:17:13 +0400 |
commit | 0612e84b3cec508c3d62d38c4e2682c85cc808bb (patch) | |
tree | db777e38f9c528127e195ad01da6a3088dc6da4a /src/plugins/custom | |
parent | ae3eb4dfd787052bebc732c3e37b56f0800e1aa2 (diff) | |
download | rspamd-0612e84b3cec508c3d62d38c4e2682c85cc808bb.tar.gz rspamd-0612e84b3cec508c3d62d38c4e2682c85cc808bb.zip |
* Fix strict aliasing while compiling with optimization
* Fix tanhl detection for platforms that have not implementation of it
* Remove several compile warnings
Diffstat (limited to 'src/plugins/custom')
-rw-r--r-- | src/plugins/custom/ipmark/ipmark.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/custom/ipmark/ipmark.c b/src/plugins/custom/ipmark/ipmark.c index 9bebcab22..f6d32b6ac 100644 --- a/src/plugins/custom/ipmark/ipmark.c +++ b/src/plugins/custom/ipmark/ipmark.c @@ -175,7 +175,7 @@ read_radix_file (void) FILE *f; char buf[BUFSIZ]; struct in_addr ina; - int mask, value; + int mask = 0, value = 0; f = fopen (filename, "r"); if (f != NULL) { @@ -260,9 +260,9 @@ parse_line (const char *line, size_t len, char **output, void *user_data) char *c = ip_buf, *err_str; struct in_addr ina; int state = 0, next_state = 0, dots = 0; - int16_t value; + int16_t value = 0; uint32_t mask; - enum ipmark_command cmd; + enum ipmark_command cmd = COMMAND_ADD; /* Parse input line */ p = line; |