From 460237328402d76a4bc4f846fc49fd8b167d60b5 Mon Sep 17 00:00:00 2001 From: Ben Klang Date: Thu, 20 Jul 2006 18:15:45 +0000 Subject: [PATCH] Add getopt option to parse max record count (Thanks Jason Chambers) git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@373 06cd67b6-e706-0410-b29e-9de616bca6e9 --- ldap2dns.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ldap2dns.c b/ldap2dns.c index a92a639..a398a76 100644 --- a/ldap2dns.c +++ b/ldap2dns.c @@ -323,7 +323,7 @@ static int parse_options() {0, 0, 0, 0} }; - c = getopt_long(main_argc, main_argv, "b:D:e:h:H:o:p:u:m:t:Vv::w:L::", long_options, &option_index); + 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); if (c == -1) break; @@ -984,7 +984,6 @@ static void read_loccodes(void) LDAPMessage* m; int ldaperr; - if ( (ldaperr = ldap_search_ext_s(ldap_con, options.searchbase[0] ? options.searchbase : NULL, LDAP_SCOPE_SUBTREE, "objectclass=DNSloccodes", NULL, 0, NULL, NULL, &options.searchtimeout, options.reclimit, &res))!=LDAP_SUCCESS ) die_ldap(ldaperr);