From: Hallvard Furuseth Date: Sat, 27 Mar 1999 18:12:58 +0000 (+0000) Subject: ROTATE error messages to stderr, not stdout X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~322 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2527e0d878b6a708b59cd92d5659ec1c8a732304;p=openldap ROTATE error messages to stderr, not stdout --- diff --git a/libraries/libavl/avl.c b/libraries/libavl/avl.c index 260601f9c0..73546530fc 100644 --- a/libraries/libavl/avl.c +++ b/libraries/libavl/avl.c @@ -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;\