From e9a61d761b3ed77b7996e0eec0f3e884a917e35c Mon Sep 17 00:00:00 2001 From: kanoi Date: Sat, 29 Aug 2015 21:00:50 +1000 Subject: [PATCH] ckdb - remove stupid gcc warning --- src/ktree.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/ktree.c b/src/ktree.c index c94d12fb..588683b0 100644 --- a/src/ktree.c +++ b/src/ktree.c @@ -89,15 +89,11 @@ static void show_ktree(K_TREE *root, char *path, int pos, char *(*dsp_funct)(K_I path[pos] = '\0'; - switch(root->red) - { - case RED_RED: + if (root->red == RED_RED) col = 'R'; - break; - case RED_BLACK: + else + // if (root->red == RED_BLACK) col = 'B'; - break; - } printf(" %c %s=%s\n", col, path, dsp_funct(root->data));