X-Git-Url: https://git.distorted.org.uk/~mdw/mLib/blobdiff_plain/3e7267bfb1faa4895769c785d859a88e86a79ff5..3618811496a6d131fd4bffa19e262c521d39e819:/hash/crc-mktab.c diff --git a/hash/crc-mktab.c b/hash/crc-mktab.c index 4453cf3..a176d16 100644 --- a/hash/crc-mktab.c +++ b/hash/crc-mktab.c @@ -37,6 +37,7 @@ #include #include +#include "macros.h" #include "mdwopt.h" #include "quis.h" #include "report.h" @@ -266,8 +267,8 @@ int main(int argc, char *argv[]) die(EXIT_FAILURE, "not enough memory"); guard = p; for (q = file; *q; p++, q++) { - if (isalnum((unsigned char)*q)) - *p = toupper((unsigned char)*q); + if (ISALNUM(*q)) + *p = TOUPPER(*q); else *p = '_'; }