From: Matthew Fernandez Date: Sun, 15 Jan 2023 21:29:38 +0000 (-0800) Subject: gvcolor colorxlate: remove unused return value X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=10159d37f709592d81bb9f3de45eb64a697bfd42;p=graphviz gvcolor colorxlate: remove unused return value --- 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) {