#include <stdio.h>
#include <k5-int.h>
#include <kadm5/admin.h>
+#include <adm_proto.h>
#include "kdb5_ldap_util.h"
#include "kdb5_ldap_list.h"
#include <ldap_principal.h>
static void print_realm_params(krb5_ldap_realm_params *rparams, int mask)
{
char **slist = NULL;
- int num_entry_printed = 0, i = 0;
+ unsigned int num_entry_printed = 0, i = 0;
/* Print the Realm Attributes on the standard output */
printf("%25s: %-50s\n", "Realm Name", global_params.realm);
* This function prints the usage of kdb5_ldap_util, which is
* the LDAP configuration utility.
*/
-void usage()
+void usage(void)
{
fprintf(stderr, "Usage: "
"kdb5_ldap_util [-D user_dn [-w passwd]] [-H ldapuri]\n"
* we will print the help corresponding to the sub-command.
*/
if (print_help_message) {
- char *cmd_name = cmd_argv[0];
free(cmd_argv);
cmd_argv = NULL;
usage();
extern int exit_status;
extern krb5_context util_context;
-extern void usage();
+extern void usage(void);
extern void db_usage(int);
-#define ARG_VAL (--argc > 0 ? (koptarg = *(++argv)) : (char *)(usage(MAIN_HELP), NULL))
+#define ARG_VAL (--argc > 0 ? (koptarg = *(++argv)) : (char *)(db_usage(MAIN_HELP), NULL))
/* Following are the bitmaps that indicate which of the options among -D, -w, -h, -p & -t
* were specified on the command line.