]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
LBER_ERROR v -1
authorKurt Zeilenga <kurt@openldap.org>
Fri, 7 Feb 2003 18:15:09 +0000 (18:15 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 7 Feb 2003 18:15:09 +0000 (18:15 +0000)
doc/man/man3/lber-decode.3
doc/man/man3/lber-encode.3

index 9472592c9c33a8dc896cef918c465366b0425e25..a8194cc970749f6925458af960f7ea53f76e3de0 100644 (file)
@@ -336,7 +336,7 @@ as follows.
 .fi
 .SH ERRORS
 If an error occurs during decoding, generally these routines return
-LBER_ERROR (\-1).
+LBER_ERROR ((ber_tag_t)\-1).
 .LP
 .SH NOTES
 .LP
index b2529dfa62aa0aa63df065b28c2f92ba1fc62885..3598bdec04c644c68e218e7c3fc5e9dcdd35268d 100644 (file)
@@ -62,7 +62,7 @@ applications that need more control than
 .BR ber_printf ()
 provides.  In
 general, these routines return the length of the element encoded, or
-LBER_ERROR if an error occurred.
+-1 if an error occurred.
 .LP
 The
 .BR ber_alloc_t ()
@@ -250,14 +250,14 @@ can be achieved like so:
       rc = ber_printf( ber, "{siiiib{v}}", dn, scope, ali,
           size, time, attrsonly, attrs );
 
-      if( rc == LBER_ERROR ) {
+      if( rc == -1 ) {
               /* error */
       } else {
               /* success */
       }
 .fi
 .SH ERRORS
-If an error occurs during encoding, generally these routines return LBER_ERROR.
+If an error occurs during encoding, generally these routines return -1.
 .LP
 .SH NOTES
 .LP