From cf0dee616af1f417daa76e746dfaa50947009fac Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Thu, 25 Oct 2007 20:43:04 +0000 Subject: 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 --- plugins-root/check_dhcp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins-root') 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(); -- cgit v1.2.3-74-g34f1