path: root/include
diff options
authorJan Engelhardt <>2009-01-27 14:58:41 +0100
committerJan Engelhardt <>2009-01-27 23:14:29 +0100
commit630ef48037f3602333addfdb53789c9c6a4bb4c8 (patch)
tree9ef701688a9b5c1785f379413d810c8efec69ae8 /include
parente917bca09924435f3fca23c01042543b1826c81e (diff)
libxtables: prefix/order - fw_xalloc
It is good practice to prefix names in a library some way so that it does not clash with external programs' variable names right on the first try. This change: rename fw_[cm]alloc to xtables_[cm]alloc and move the definition from internal.h to xtables.h to avoid potential compiler warnings. Signed-off-by: Jan Engelhardt <>
Diffstat (limited to 'include')
2 files changed, 3 insertions, 3 deletions
diff --git a/include/ b/include/
index 8327c426..e63d171e 100644
--- a/include/
+++ b/include/
@@ -140,6 +140,9 @@ struct xtables_target
+extern void *xtables_calloc(size_t, size_t);
+extern void *xtables_malloc(size_t);
/* Your shared library should call one of these. */
extern void xtables_register_match(struct xtables_match *me);
extern void xtables_register_target(struct xtables_target *me);
diff --git a/include/xtables/internal.h b/include/xtables/internal.h
index 24a5078b..6b78d3a8 100644
--- a/include/xtables/internal.h
+++ b/include/xtables/internal.h
@@ -43,9 +43,6 @@ struct xtables_rule_match {
extern char *lib_dir;
-extern void *fw_calloc(size_t count, size_t size);
-extern void *fw_malloc(size_t size);
extern const char *modprobe_program;
extern int xtables_insmod(const char *modname, const char *modprobe, int quiet);
extern int load_xtables_ko(const char *modprobe, int quiet);