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
This commit is contained in:
Ben Klang
2006-07-20 18:15:45 +00:00
parent 59a91b5706
commit 4602373284

View File

@@ -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);