From: Matthew Fernandez Date: Sat, 18 Sep 2021 01:01:38 +0000 (-0700) Subject: lefty SFcompareEntries: remove some unnecessary casts X-Git-Tag: 2.49.1~6^2~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a6478212ff73fa6e49ef7deec5287518b3fbfad8;p=graphviz lefty SFcompareEntries: remove some unnecessary casts --- diff --git a/cmd/lefty/ws/x11/libfilereq/Dir.c b/cmd/lefty/ws/x11/libfilereq/Dir.c index 75b30e186..07e6007a0 100644 --- a/cmd/lefty/ws/x11/libfilereq/Dir.c +++ b/cmd/lefty/ws/x11/libfilereq/Dir.c @@ -60,7 +60,7 @@ extern void qsort (); #ifdef SEL_FILE_IGNORE_CASE int SFcompareEntries (const void *vp, const void *vq) { - SFEntry *p = (SFEntry *) vp, *q = (SFEntry *) vq; + const SFEntry *p = vp, *q = vq; char *r, *s; char c1, c2; @@ -91,7 +91,7 @@ int SFcompareEntries (const void *vp, const void *vq) { } #else /* def SEL_FILE_IGNORE_CASE */ int SFcompareEntries (const void *vp, const void *vq) { - const SFEntry *p = (const SFEntry *) vp, *q = (const SFEntry *) vq; + const SFEntry *p = vp, *q = vq; return strcmp (p->real, q->real); }