]> granicus.if.org Git - graphviz/commitdiff
remove unnecessary cast in canontoken
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 26 Jun 2021 22:56:03 +0000 (15:56 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 17 Jul 2021 17:45:45 +0000 (10:45 -0700)
The variable canon is already an unsigned char pointer.

lib/common/colxlate.c

index 0ebe55b28a63db0a7654405b1f3d5df8168c45bb..6a7f1256d2f90d62b5ce44a6895165876d89fe03 100644 (file)
@@ -144,7 +144,7 @@ char *canontoken(char *str)
        if (!canon)
            return NULL;
     }
-    q = (unsigned char *) canon;
+    q = canon;
     while ((c = *p++)) {
        /* if (isalnum(c) == FALSE) */
            /* continue; */