diff options
author | Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com> | 2014-05-06 13:28:33 +0200 |
---|---|---|
committer | Arturo Borrero Gonzalez <aborrero@cica.es> | 2014-05-07 17:09:29 +0200 |
commit | caa1cf2960db0d0a01e707f5a82a05d0718ff498 (patch) | |
tree | daad2ad6efadd88271a9351b52e7ee50049ac555 /src/utils.c | |
parent | c179ee88d91a84fc75dc4602cca500e8fa72ed66 (diff) |
nft-sync: complete --fetch operation
This patch complete the --fetch operation in the server side.
By now, the format of the ruleset is XML. In further patches we can include
additional config options to let the admin choose one of XML/JSON.
Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/utils.c')
-rw-r--r-- | src/utils.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/utils.c b/src/utils.c new file mode 100644 index 0000000..f1886c4 --- /dev/null +++ b/src/utils.c @@ -0,0 +1,17 @@ +/* + * Copyright (c) 2013 Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + */ + +#include <stdlib.h> + +#include "utils.h" + +void xfree(const void *ptr) +{ + free((void *)ptr); +} |