From: Matthew Fernandez Date: Wed, 2 Feb 2022 11:50:47 +0000 (+1100) Subject: textspan.c: [nfc] remove unnecessary casts X-Git-Tag: 3.0.0~45^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ebebd75e01c8197987a9f2f3e3e07cd07418b95d;p=graphviz textspan.c: [nfc] remove unnecessary casts --- diff --git a/lib/common/textspan.c b/lib/common/textspan.c index bfde2afbe..f9c60b259 100644 --- a/lib/common/textspan.c +++ b/lib/common/textspan.c @@ -105,7 +105,7 @@ static void* textfont_makef(Dt_t* dt, void* obj, Dtdisc_t* disc) (void)dt; (void)disc; - textfont_t *f1 = (textfont_t*)obj; + textfont_t *f1 = obj; textfont_t *f2 = calloc(1,sizeof(textfont_t)); /* key */ @@ -125,7 +125,7 @@ static void textfont_freef(Dt_t* dt, void* obj, Dtdisc_t* disc) (void)dt; (void)disc; - textfont_t *f = (textfont_t*)obj; + textfont_t *f = obj; free(f->name); free(f->color); @@ -138,7 +138,7 @@ static int textfont_comparf (Dt_t* dt, void* key1, void* key2, Dtdisc_t* disc) (void)disc; int rc; - textfont_t *f1 = (textfont_t*)key1, *f2 = (textfont_t*)key2; + textfont_t *f1 = key1, *f2 = key2; if (f1->name || f2->name) { if (! f1->name) return -1;