diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-04-29 13:15:21 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-04-29 13:15:21 +0100 |
commit | 8fbd19806560ed1af1d4264ba8a40e4d2abba0ff (patch) | |
tree | 4dbb06af119f081ca5902207c147c2398e9644b9 /test | |
parent | 852ec8126ca249debc59c5038ac58d5cbe96338f (diff) | |
download | rspamd-8fbd19806560ed1af1d4264ba8a40e4d2abba0ff.tar.gz rspamd-8fbd19806560ed1af1d4264ba8a40e4d2abba0ff.zip |
[Minor] Refactor destroy -> free
Diffstat (limited to 'test')
-rw-r--r-- | test/lua/unit/addr.lua | 4 | ||||
-rw-r--r-- | test/rspamd_http_test.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/lua/unit/addr.lua b/test/lua/unit/addr.lua index 519be358c..8229535ac 100644 --- a/test/lua/unit/addr.lua +++ b/test/lua/unit/addr.lua @@ -7,7 +7,7 @@ context("Inet addr check functions", function() typedef struct rspamd_inet_addr_s rspamd_inet_addr_t; bool rspamd_parse_inet_address (rspamd_inet_addr_t **target, const char *src); - void rspamd_inet_address_destroy (rspamd_inet_addr_t *addr); + void rspamd_inet_address_freefree (rspamd_inet_addr_t *addr); ]] test("Create inet addr from string", function() @@ -24,7 +24,7 @@ context("Inet addr check functions", function() local res = ffi.C.rspamd_parse_inet_address(ip, c[1]) assert_equal(res, c[2], "Expect " .. tostring(c[2]) .. " while parsing " .. c[1]) if res then - ffi.C.rspamd_inet_address_destroy(ip[0]) + ffi.C.rspamd_inet_address_free(ip[0]) end end end) diff --git a/test/rspamd_http_test.c b/test/rspamd_http_test.c index 4ce859efd..19ee50ea1 100644 --- a/test/rspamd_http_test.c +++ b/test/rspamd_http_test.c @@ -65,7 +65,7 @@ rspamd_server_accept (gint fd, short what, void *arg) return; } - rspamd_inet_address_destroy (addr); + rspamd_inet_address_free (addr); rspamd_http_router_handle_socket (rt, nfd, NULL); } |