X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=clients%2Fud%2Fmain.c;h=42395a042ec1f19ec997bf785ee836974c154264;hb=dc07e765f263ef459dcd2afd1ece01cfc85a0edd;hp=61de28d4724a9d484f0fdfddca632fd956f9fef6;hpb=29a7d6229a0c25707d78d3dac2334b2178df4217;p=openldap diff --git a/clients/ud/main.c b/clients/ud/main.c index 61de28d472..42395a042e 100644 --- a/clients/ud/main.c +++ b/clients/ud/main.c @@ -1,3 +1,7 @@ +/* + * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved. + * COPYING RESTRICTIONS APPLY, see COPYRIGHT file + */ /* * Copyright (c) 1991, 1992, 1993 * Regents of the University of Michigan. All rights reserved. @@ -43,18 +47,13 @@ #include #include "ud.h" -#ifndef lint -char copyright[] = -"@(#) Copyright (c) 1991, 1992, 1993 Regents of the University of Michigan.\nAll rights reserved.\n"; -#endif - /* * Used with change_base() to indicate which base we are changing. */ #define BASE_SEARCH 0 #define BASE_GROUPS 1 -#define iscom(x) (!strncasecmp(x, cmd, strlen(cmd))) +#define iscom(x) (!strncasecmp((x), cmd, strlen(cmd))) static char *server = NULL; static char *config_file = UD_CONFIG_FILE; @@ -83,6 +82,9 @@ int debug; /* debug flag */ #endif int ldebug; /* library debug flag */ +#ifndef HAVE_MKVERSION +char Version[] = "OpenLDAP UserDirectory (ud)"; +#endif int main( int argc, char **argv ) @@ -552,7 +554,7 @@ initialize_client( void ) #endif if (ldebug) { - lber_set_option(NULL, LBER_OPT_DEBUG_LEVEL, &ldebug); + ber_set_option(NULL, LBER_OPT_DEBUG_LEVEL, &ldebug); ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, &ldebug); }