Diff for /libraries/liblber/decode.c between versions 1.3.4.1 and 1.4.10.2

version 1.3.4.1, 1998/08/13 18:23:30 version 1.4.10.2, 1998/09/23 06:13:37
Line 11 Line 11
  * is provided ``as is'' without express or implied warranty.   * is provided ``as is'' without express or implied warranty.
  */   */
   
   #define DISABLE_BRIDGE /* disable LDAP_BRIDGE code */
   #include "portable.h"
   
 #include <stdio.h>  #include <stdio.h>
   
 #ifdef MACOS  #ifdef MACOS
 #include <stdlib.h>  #include <stdlib.h>
 #include <stdarg.h>  #include <stdarg.h>
 #include "macos.h"  #include "macos.h"
 #else /* MACOS */  #else /* MACOS */
 #if defined(NeXT) || defined(VMS)  
   #if defined(NeXT) || defined(VMS) || defined(__FreeBSD__)
 #include <stdlib.h>  #include <stdlib.h>
 #else /* next || vms */  #else /* next || vms || freebsd */
 #ifndef __FreeBSD__  
 #include <malloc.h>  #include <malloc.h>
 #endif  #endif /* next || vms || freebsd */
 #endif /* next || vms */  #if defined(BC31) || defined(_WIN32)
 #if defined(BC31) || defined(_WIN32) || defined(sunos5)  
 #include <stdarg.h>  #include <stdarg.h>
 #else /* BC31 || _WIN32 || defined(sunos5) */  #else /* BC31 || _WIN32 */
 #include <varargs.h>  #include <varargs.h>
 #endif /* BC31 || _WIN32 || defined(sunos5) */  #endif /* BC31 || _WIN32 */
 #include <sys/types.h>  #include <sys/types.h>
 #include <sys/socket.h>  #include <sys/socket.h>
 #include <netinet/in.h>  #include <netinet/in.h>
Line 42 Line 45
 #endif /* DOS */  #endif /* DOS */
   
 #include <string.h>  #include <string.h>
   
 #include "lber.h"  #include "lber.h"
   
 #ifdef LDAP_DEBUG  #ifdef LDAP_DEBUG
 int     lber_debug;  int     lber_debug;
 #endif  #endif
   
 #ifdef NEEDPROTOS  static int ber_getnint LDAP_P(( BerElement *ber, long *num, int len ));
 static int ber_getnint( BerElement *ber, long *num, int len );  
 #endif /* NEEDPROTOS */  
   
   
 /* return the tag - LBER_DEFAULT returned means trouble */  /* return the tag - LBER_DEFAULT returned means trouble */
 unsigned long  unsigned long
Line 387  ber_next_element( BerElement *ber, unsig Line 388  ber_next_element( BerElement *ber, unsig
 /* VARARGS */  /* VARARGS */
 unsigned long  unsigned long
 ber_scanf(  ber_scanf(
 #if defined( MACOS ) || defined( BC31 ) || defined( _WIN32 ) || defined(sunos5)  #if defined( MACOS ) || defined( BC31 ) || defined( _WIN32 )
         BerElement *ber, char *fmt, ... )          BerElement *ber, char *fmt, ... )
 #else  #else
         va_alist )          va_alist )
Line 395  va_dcl Line 396  va_dcl
 #endif  #endif
 {  {
         va_list         ap;          va_list         ap;
 #if !defined( MACOS ) && !defined( BC31 ) && !defined( _WIN32 ) && !defined(sunos5)  #if !defined( MACOS ) && !defined( BC31 ) && !defined( _WIN32 )
         BerElement      *ber;          BerElement      *ber;
         char            *fmt;          char            *fmt;
 #endif  #endif
Line 406  va_dcl Line 407  va_dcl
         long            *l, rc, tag;          long            *l, rc, tag;
         unsigned long   len;          unsigned long   len;
   
 #if defined( MACOS ) || defined( BC31 ) || defined( _WIN32 ) || defined(sunos5)  #if defined( MACOS ) || defined( BC31 ) || defined( _WIN32 )
         va_start( ap, fmt );          va_start( ap, fmt );
 #else  #else
         va_start( ap );          va_start( ap );

Removed from v.1.3.4.1  
changed lines
  Added in v.1.4.10.2


______________
© Copyright 1998-2020, OpenLDAP Foundation, info@OpenLDAP.org