]> git.sur5r.net Git - openldap/blobdiff - include/ac/bytes.h
Fix ITS#1983, handle writing of large requests. Only one pending request is
[openldap] / include / ac / bytes.h
index ea0f52e07327029379a21204ddb54b40dd855b1b..609267997f3c62183feea53e7d9df11f7020e8dd 100644 (file)
@@ -1,13 +1,14 @@
 /* Generic bytes.h */
 /* $OpenLDAP$ */
 /*
- * Copyright 1998-2000 The OpenLDAP Foundation, Redwood City, California, USA
+ * Copyright 1998-2002 The OpenLDAP Foundation, Redwood City, California, USA
  * All rights reserved.
  *
- * Redistribution and use in source and binary forms are permitted only
- * as authorized by the OpenLDAP Public License.  A copy of this
- * license is available at http://www.OpenLDAP.org/license.html or
- * in file LICENSE in the top-level directory of the distribution.
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted only as authorized by the OpenLDAP
+ * Public License.  A copy of this license is available at
+ * http://www.OpenLDAP.org/license.html or in file LICENSE in the
+ * top-level directory of the distribution.
  */
 
 #ifndef _AC_BYTES_H
@@ -15,7 +16,7 @@
 
 /* cross compilers should define both AC_INT{2,4}_TYPE in CPPFLAGS */
 
-#if !defined( AC_INT4_TYPE ) 
+#if !defined( AC_INT4_TYPE )
        /* use autoconf defines to provide sized typedefs */
 #      if SIZEOF_LONG == 4
 #              define AC_INT4_TYPE long
@@ -24,8 +25,7 @@
 #      elif SIZEOF_SHORT == 4
 #              define AC_INT4_TYPE short
 #      else
-/* used by SHA-1, but commented out */
-/* #   error "AC_INT2_TYPE?" */
+#      error "AC_INT4_TYPE?"
 #      endif
 #endif
 
@@ -33,7 +33,7 @@ typedef AC_INT4_TYPE ac_int4;
 typedef signed AC_INT4_TYPE ac_sint4;
 typedef unsigned AC_INT4_TYPE ac_uint4;
 
-#if !defined( AC_INT2_TYPE ) 
+#if !defined( AC_INT2_TYPE )
 #      if SIZEOF_SHORT == 2
 #              define AC_INT2_TYPE short
 #      elif SIZEOF_INT == 2
@@ -41,12 +41,11 @@ typedef unsigned AC_INT4_TYPE ac_uint4;
 #      elif SIZEOF_LONG == 2
 #              define AC_INT2_TYPE long
 #      else
-/* not used, no error */
-/* #   error "AC_INT2_TYPE?" */
+#      error "AC_INT2_TYPE?"
 #      endif
 #endif
-    
-#if defined( AC_INT2_TYPE ) 
+#if defined( AC_INT2_TYPE )
 typedef AC_INT2_TYPE ac_int2;
 typedef signed AC_INT2_TYPE ac_sint2;
 typedef unsigned AC_INT2_TYPE ac_uint2;