From 10159d37f709592d81bb9f3de45eb64a697bfd42 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 15 Jan 2023 13:29:38 -0800 Subject: [PATCH] gvcolor colorxlate: remove unused return value --- cmd/tools/colxlate.c | 4 +--- cmd/tools/gvcolor.c | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/cmd/tools/colxlate.c b/cmd/tools/colxlate.c index 48c71518f..f0d5538b2 100644 --- a/cmd/tools/colxlate.c +++ b/cmd/tools/colxlate.c @@ -49,8 +49,7 @@ static int colorcmpf(const void *a0, const void *a1) return strcmp(p0->name, p1->name); } -char *colorxlate(char *str, char *buf) -{ +void colorxlate(char *str, char *buf) { static hsbcolor_t *last; char canon[128]; char *p; @@ -72,5 +71,4 @@ char *colorxlate(char *str, char *buf) } else sprintf(buf, "%.3f %.3f %.3f", ((double) last->h) / 255, ((double) last->s) / 255, ((double) last->b) / 255); - return buf; } diff --git a/cmd/tools/gvcolor.c b/cmd/tools/gvcolor.c index 1cf5fc2d4..87eedeaa5 100644 --- a/cmd/tools/gvcolor.c +++ b/cmd/tools/gvcolor.c @@ -50,7 +50,7 @@ int AdjustSaturation; double MinRankSaturation; double MaxRankSaturation; -extern char *colorxlate(char *str, char *buf); +extern void colorxlate(char *str, char *buf); static int cmpf(Agnode_t ** n0, Agnode_t ** n1) { -- 2.40.0