]> git.sur5r.net Git - openldap/commitdiff
Minor changes to support MSVC.
authorKurt Zeilenga <kurt@openldap.org>
Thu, 11 Feb 1999 22:54:04 +0000 (22:54 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 11 Feb 1999 22:54:04 +0000 (22:54 +0000)
clients/tools/ldapsearch.c
clients/ud/group.c
include/ac/unistd.h
include/portable.h.nt
libraries/libldif/libldif.dsp

index 17144523e72e71c5ff37519561129040767b7a55..e3654c62e921036e0bc5bfd390d86ab7a69d732a 100644 (file)
@@ -331,6 +331,8 @@ char        **argv;
 
     ldap_unbind( ld );
     exit( rc );
+
+       return rc; /* not reached */
 }
 
 
index dff41cdf7b2841f86fcc92f5d2d964fedb4cbef5..9e32739f24ca762a578715370698409450e89baf 100644 (file)
@@ -31,7 +31,7 @@ static char * bind_and_fetch(char *name);
 void
 add_group( char *name )
 {
-       register int i, idx = 0, prompt = 0;
+       register int idx = 0, prompt = 0;
        char tmp[BUFSIZ], dn[BUFSIZ];
        static LDAPMod *attrs[9];
        LDAPMod init_rdn,    init_owner,   init_domain,
@@ -154,7 +154,7 @@ add_group( char *name )
        if (debug & D_GROUPS) {
                register LDAPMod **lpp;
                register char **cpp;
-               register int j;
+               register int i, j;
                printf("  About to call ldap_add()\n");
                printf("  ld = 0x%x\n", ld);
                printf("  dn = [%s]\n", dn);
@@ -724,7 +724,6 @@ mod_addrDN( char *group, int offset )
 {
        char s[BUFSIZ], *new_value /* was member */, *values[2];
        char attrtype[ 64 ];
-       int i;
        LDAPMod mod, *mods[2];
        LDAPMessage *mp;
 
index f0d9c1ad7265fd0b215ee36e6bb295a02b68b7e0..3eb7c23e4ce44dc523bbe6ae825357eee72dab60 100644 (file)
        extern char *crypt();
 #endif
 
+#ifndef HAVE_GETPASS
+extern char* getpass LDAP_P((const char* prompt));
+#endif
+
 /* getopt() defines may be in separate include file */
 #if HAVE_GETOPT_H
 #      include <getopt.h>
index eca97aa2558083be4eecb4ab652804b58936b3c2..4db71c5ca9a319a84edd3ea7a23c11baff2a68c3 100644 (file)
@@ -29,6 +29,8 @@
 #define strcasecmp     stricmp
 #define strncasecmp    strnicmp
 #define strdup         _strdup
+#define vsnprintf      _vsnprintf
+#define vsprintf       _vsprintf
 
 /* define type for caddr_t */
 typedef char * caddr_t;
@@ -132,7 +134,7 @@ typedef char * caddr_t;
 /* #undef REENTRANT */
 #endif
 #ifndef _REENTRANT
-#undef _REENTRANT
+/* #undef _REENTRANT */
 #endif
 
 /* define this if needed to get threadsafe functions */
@@ -146,11 +148,11 @@ typedef char * caddr_t;
 /* #undef THREAD_SAFE */
 #endif
 #ifndef _THREAD_SAFE
-/* #undef _THREAD_SAFE *
+/* #undef _THREAD_SAFE */
 #endif
 
 /* define this if toupper() requires tolower() */
-#define C_UPPER_LOWER
+#define C_UPPER_LOWER 1
 
 /* define this to the number of arguments ctime_r() expects */
 /* #undef CTIME_R_NARGS */
@@ -186,7 +188,7 @@ typedef char * caddr_t;
 #endif
 
 /* define if you have setproctitle() */
-#undef HAVE_SETPROCTITLE
+/* #undef HAVE_SETPROCTITLE */
 
 /* define this for connectionless LDAP support */
 /* #undef LDAP_CONNECTIONLESS */
@@ -381,10 +383,10 @@ typedef char * caddr_t;
 /* #undef HAVE_THR_YIELD */
 
 /* Define if you have the vsnprintf function.  */
-/* #undef HAVE_VSNPRINTF */
+#define HAVE_VSNPRINTF 1
 
 /* Define if you have the vsprintf function.  */
-/* #undef HAVE_VSPRINTF */
+#define HAVE_VSPRINTF 1
 
 /* Define if you have the waitpid function.  */
 #define HAVE_WAITPID 1
@@ -657,7 +659,6 @@ typedef char * caddr_t;
 /* #undef CROSS_COMPILING */
 
 /* begin of postamble */
-
 #ifdef HAVE_STDDEF_H
 #      include <stddef.h>
 #endif
index 9f0b6e8bb3f0f35f7781a0c8f19dfe2b52cb471b..1b900d9d102526c3d33de95602ca829066e7c066 100644 (file)
@@ -94,9 +94,5 @@ SOURCE=.\line64.c
 
 SOURCE=..\..\include\portable.h
 # End Source File
-# Begin Source File
-
-SOURCE=..\libldap\print.c
-# End Source File
 # End Target
 # End Project