]> git.sur5r.net Git - openldap/blobdiff - libraries/libavl/avl.c
All implementations of lutil_lockf (aka ldap_lockf) block until
[openldap] / libraries / libavl / avl.c
index 260601f9c0a855bb7b182e08b7a41fe59a773be3..73546530fc1cff9232f53c526ba0a1bf1d4fa5a4 100644 (file)
@@ -27,7 +27,7 @@ static char avl_version[] = "AVL library version 1.0\n";
 #define ROTATERIGHT(x) { \
        Avlnode *tmp;\
        if ( *(x) == NULL || (*(x))->avl_left == NULL ) {\
-               (void) printf("RR error\n"); exit(1); \
+               (void) fputs("RR error\n", stderr); exit(1); \
        }\
        tmp = (*(x))->avl_left;\
        (*(x))->avl_left = tmp->avl_right;\
@@ -37,7 +37,7 @@ static char avl_version[] = "AVL library version 1.0\n";
 #define ROTATELEFT(x)  { \
        Avlnode *tmp;\
        if ( *(x) == NULL || (*(x))->avl_right == NULL ) {\
-               (void) printf("RL error\n"); exit(1); \
+               (void) fputs("RL error\n", stderr); exit(1); \
        }\
        tmp = (*(x))->avl_right;\
        (*(x))->avl_right = tmp->avl_left;\