]> git.sur5r.net Git - openldap/blobdiff - libraries/liblber/etest.c
Fix typo in last commit
[openldap] / libraries / liblber / etest.c
index 9d235b8554e3cc534843d7942f8847616d39d1e6..01c10e99071c2a7ef43d51e90d817b82afc28d2d 100644 (file)
@@ -1,7 +1,7 @@
 /* test.c - lber encoding test program */
 /* $OpenLDAP$ */
 /*
- * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.
+ * Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
  */
 /* Portions
@@ -75,7 +75,9 @@ main( int argc, char **argv )
        fd = fileno(stdout);
 #endif
 
-       sb = ber_sockbuf_alloc_fd( fd );
+       sb = ber_sockbuf_alloc();
+       ber_sockbuf_add_io( sb, &ber_sockbuf_io_fd, LBER_SBIOD_LEVEL_PROVIDER,
+               (void *)&fd );
 
        if( sb == NULL ) {
                perror( "ber_sockbuf_alloc_fd" );