diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2007-10-25 20:43:04 +0000 |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2007-10-25 20:43:04 +0000 |
commit | cf0dee616af1f417daa76e746dfaa50947009fac (patch) | |
tree | 58e5ae5ef39f76bce53c7b09a49dfbaf0324cfac /plugins-root/check_dhcp.c | |
parent | 745b58a68bf2e60a6652475c56a1cff0aa6ebf9f (diff) | |
download | monitoring-plugins-cf0dee616af1f417daa76e746dfaa50947009fac.tar.gz |
Automatically update website with --help output. Cosmetic
fixes for some help output
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1810 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins-root/check_dhcp.c')
-rw-r--r-- | plugins-root/check_dhcp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins-root/check_dhcp.c b/plugins-root/check_dhcp.c index c6e5af8a..bc2f4bbe 100644 --- a/plugins-root/check_dhcp.c +++ b/plugins-root/check_dhcp.c @@ -269,9 +269,6 @@ int main(int argc, char **argv){ int dhcp_socket; int result = STATE_UNKNOWN; - /* this plugin almost certainly needs root permissions. */ - np_warn_if_not_root(); - setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); @@ -280,6 +277,9 @@ int main(int argc, char **argv){ usage4 (_("Could not parse arguments")); } + /* this plugin almost certainly needs root permissions. */ + np_warn_if_not_root(); + /* create socket for DHCP communications */ dhcp_socket=create_dhcp_socket(); |