diff options
Diffstat (limited to 'src/libwpactrl/wpactrl_end.c')
-rw-r--r-- | src/libwpactrl/wpactrl_end.c | 11 |
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 ; +} |