X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/de4636bb664106d9932ae7acb517e471b848f1f3..1316c8d619a6de50544da7c8435d2f6d6045da54:/uip/anno.c diff --git a/uip/anno.c b/uip/anno.c index 0ed6e77f..cf52021c 100644 --- a/uip/anno.c +++ b/uip/anno.c @@ -74,7 +74,7 @@ DEFINE_SWITCH_ARRAY(ANNO, switches); /* * static prototypes */ -static void make_comp (unsigned char **); +static void make_comp (char **); int @@ -83,8 +83,7 @@ main (int argc, char **argv) int inplace = 1, datesw = 1; int msgnum; char *cp, *maildir; - unsigned char *comp = NULL; - char *text = NULL, *folder = NULL, buf[BUFSIZ]; + char *comp = NULL, *text = NULL, *folder = NULL, buf[BUFSIZ]; char **argp, **arguments; struct msgs_array msgs = { 0, 0, NULL }; struct msgs *mp; @@ -275,10 +274,9 @@ main (int argc, char **argv) } static void -make_comp (unsigned char **ap) +make_comp (char **ap) { - register unsigned char *cp; - char buffer[BUFSIZ]; + char *cp, buffer[BUFSIZ]; if (*ap == NULL) { printf ("Enter component name: "); @@ -299,6 +297,6 @@ make_comp (unsigned char **ap) adios (NULL, "too large component name %s", *ap); for (cp = *ap; *cp; cp++) - if (!isalnum (*cp) && *cp != '-') + if (!isalnum ((unsigned char) *cp) && *cp != '-') adios (NULL, "invalid component name %s", *ap); }