about summary refs log tree commit diff
path: root/src/libwpactrl/wpactrl_end.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libwpactrl/wpactrl_end.c')
-rw-r--r--src/libwpactrl/wpactrl_end.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libwpactrl/wpactrl_end.c b/src/libwpactrl/wpactrl_end.c
new file mode 100644
index 0000000..40fdb4a
--- /dev/null
+++ b/src/libwpactrl/wpactrl_end.c
@@ -0,0 +1,11 @@
+/* ISC license. */
+
+#include <skalibs/djbunix.h>
+#include <bcnm/wpactrl.h>
+
+void wpactrl_free (wpactrl_t *a)
+{
+  fd_close(a->fda) ;
+  fd_close(a->fds) ;
+  *a = wpactrl_zero ;
+}