diff options
| author | Gleb Smirnoff <glebius@FreeBSD.org> | 2006-08-10 11:10:02 +0000 |
|---|---|---|
| committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2006-08-10 11:10:02 +0000 |
| commit | ddc06fa479badd1503bc8a87d3eaac74cd44d2b7 (patch) | |
| tree | 17c35660b9fdae111ceb1cb85bf2235688e60659 /usr.sbin/ngctl/rmhook.c | |
| parent | d0950079d8f0433f16757da015d66aff6f65ffbd (diff) | |
Notes
Diffstat (limited to 'usr.sbin/ngctl/rmhook.c')
| -rw-r--r-- | usr.sbin/ngctl/rmhook.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/usr.sbin/ngctl/rmhook.c b/usr.sbin/ngctl/rmhook.c index 834cc0c909d9..9a47a9d66fdf 100644 --- a/usr.sbin/ngctl/rmhook.c +++ b/usr.sbin/ngctl/rmhook.c @@ -37,6 +37,10 @@ * $FreeBSD$ */ +#include <err.h> +#include <netgraph.h> +#include <stdio.h> + #include "ngctl.h" static int RmHookCmd(int ac, char **av); @@ -68,15 +72,15 @@ RmHookCmd(int ac, char **av) snprintf(rmh.ourhook, sizeof(rmh.ourhook), "%s", av[1]); break; default: - return(CMDRTN_USAGE); + return (CMDRTN_USAGE); } /* Send message */ if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, NGM_RMHOOK, &rmh, sizeof(rmh)) < 0) { warn("send msg"); - return(CMDRTN_ERROR); + return (CMDRTN_ERROR); } - return(CMDRTN_OK); + return (CMDRTN_OK); } |
