-/*
+/*
ldb database library - command line handling for ldb tools
Copyright (C) Andrew Tridgell 2005
** NOTE! The following LGPL license applies to the ldb
** library. This does NOT imply that all of Samba is released
** under the LGPL
-
+
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
}
options = *ret;
-
+
/* pull in URL */
options.url = getenv("LDB_URL");
break;
case 'o':
- options.options = talloc_realloc(ret, options.options,
+ options.options = talloc_realloc(ret, options.options,
const char *, num_options+3);
if (options.options == NULL) {
fprintf(stderr, "Out of memory!\n");
}
}
- break;
+ break;
}
case 'P':
if (!add_control(ret, "paged_results:1:1024")) {
}
break;
default:
- fprintf(stderr, "Invalid option %s: %s\n",
+ fprintf(stderr, "Invalid option %s: %s\n",
poptBadOption(pc, 0), poptStrerror(opt));
if (usage) usage(ldb);
goto failed;
/* now connect to the ldb */
if (ldb_connect(ldb, ret->url, flags, ret->options) != LDB_SUCCESS) {
- fprintf(stderr, "Failed to connect to %s - %s\n",
+ fprintf(stderr, "Failed to connect to %s - %s\n",
ret->url, ldb_errstring(ldb));
goto failed;
}