From 2527e0d878b6a708b59cd92d5659ec1c8a732304 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Sat, 27 Mar 1999 18:12:58 +0000 Subject: [PATCH] ROTATE error messages to stderr, not stdout --- libraries/libavl/avl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;\ -- 2.39.5