From 0af354243ecd6f5313009c307658c024034e37ea Mon Sep 17 00:00:00 2001 From: Ben Klang Date: Thu, 24 Jul 2008 18:57:34 +0000 Subject: [PATCH] Fix getopt call to include new flags git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@461 06cd67b6-e706-0410-b29e-9de616bca6e9 --- ldap2dns.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ldap2dns.c b/ldap2dns.c index 6fc6347..304ced1 100644 --- a/ldap2dns.c +++ b/ldap2dns.c @@ -377,12 +377,12 @@ static int parse_options() {"version", 0, 0, 'V'}, {"timeout", 1, 0, 't'}, {"maxrecords", 1, 0, 'M'}, - {"daemonize", 1, 0, 'd'}, - {"foreground", 1, 0, 'f'}, + {"daemonize", 0, 0, 'd'}, + {"foreground", 0, 0, 'f'}, {0, 0, 0, 0} }; - c = getopt_long(main_argc, main_argv, "b:D:e:h:H:o:p:u:M:m:t:Vv::w:L::", long_options, &option_index); + c = getopt_long(main_argc, main_argv, "b:dD:e:fh:H:o:p:u:M:m:t:Vv::w:L::", long_options, &option_index); if (c == -1) break;