/*
* static prototypes
*/
-static void make_comp (unsigned char **);
+static void make_comp (char **);
int
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;
adios (maildir, "unable to change directory to");
/* read folder and create message structure */
- if (!(mp = folder_read (folder)))
+ if (!(mp = folder_read (folder, 1)))
adios (NULL, "unable to read folder %s", folder);
/* check for empty folder */
}
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: ");
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);
}