]> granicus.if.org Git - graphviz/commitdiff
lefty SFcompareEntries: remove some unnecessary casts
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 18 Sep 2021 01:01:38 +0000 (18:01 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 19 Sep 2021 18:00:07 +0000 (11:00 -0700)
cmd/lefty/ws/x11/libfilereq/Dir.c

index 75b30e186d384467711ed7e5ba86a18d3fce2fd1..07e6007a06bf116713e437cb2e989b29401d3799 100644 (file)
@@ -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);
 }