nmh-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Nmh-commits] nmh h/mf.h h/prototypes.h mts/smtp/hosts.c mts/...


From: Joel Reicher
Subject: [Nmh-commits] nmh h/mf.h h/prototypes.h mts/smtp/hosts.c mts/...
Date: Fri, 13 Apr 2007 11:53:09 +0000

CVSROOT:        /sources/nmh
Module name:    nmh
Changes by:     Joel Reicher <jjr>      07/04/13 11:53:08

Modified files:
        h              : mf.h prototypes.h 
        mts/smtp       : hosts.c smtp.c 
        sbr            : dtimep.lex fmt_compile.c fmt_scan.c m_atoi.c 
                         m_convert.c mf.c mts.c seq_nameok.c trimcpy.c 
        uip            : aliasbr.c anno.c distsbr.c flist.c ftpsbr.c 
                         mhbuildsbr.c mhlsbr.c mhparse.c msh.c mshcmds.c 
                         popsbr.c post.c replsbr.c scansbr.c show.c 
                         slocal.c sortm.c spost.c 

Log message:
        Change all chars being passed to the ctype macros (isalph(), etc.) to
        be unsigned chars, following through to change any other types as
        necessary (e.g. comparison between two pointers). Not all chars have
        been changed to unsigned chars; just those that were in danger of being
        sign extended when passed to the int-taking ctype macros.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/nmh/h/mf.h?cvsroot=nmh&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/nmh/h/prototypes.h?cvsroot=nmh&r1=1.17&r2=1.18
http://cvs.savannah.gnu.org/viewcvs/nmh/mts/smtp/hosts.c?cvsroot=nmh&r1=1.7&r2=1.8
http://cvs.savannah.gnu.org/viewcvs/nmh/mts/smtp/smtp.c?cvsroot=nmh&r1=1.18&r2=1.19
http://cvs.savannah.gnu.org/viewcvs/nmh/sbr/dtimep.lex?cvsroot=nmh&r1=1.9&r2=1.10
http://cvs.savannah.gnu.org/viewcvs/nmh/sbr/fmt_compile.c?cvsroot=nmh&r1=1.7&r2=1.8
http://cvs.savannah.gnu.org/viewcvs/nmh/sbr/fmt_scan.c?cvsroot=nmh&r1=1.23&r2=1.24
http://cvs.savannah.gnu.org/viewcvs/nmh/sbr/m_atoi.c?cvsroot=nmh&r1=1.2&r2=1.3
http://cvs.savannah.gnu.org/viewcvs/nmh/sbr/m_convert.c?cvsroot=nmh&r1=1.3&r2=1.4
http://cvs.savannah.gnu.org/viewcvs/nmh/sbr/mf.c?cvsroot=nmh&r1=1.6&r2=1.7
http://cvs.savannah.gnu.org/viewcvs/nmh/sbr/mts.c?cvsroot=nmh&r1=1.4&r2=1.5
http://cvs.savannah.gnu.org/viewcvs/nmh/sbr/seq_nameok.c?cvsroot=nmh&r1=1.2&r2=1.3
http://cvs.savannah.gnu.org/viewcvs/nmh/sbr/trimcpy.c?cvsroot=nmh&r1=1.2&r2=1.3
http://cvs.savannah.gnu.org/viewcvs/nmh/uip/aliasbr.c?cvsroot=nmh&r1=1.7&r2=1.8
http://cvs.savannah.gnu.org/viewcvs/nmh/uip/anno.c?cvsroot=nmh&r1=1.10&r2=1.11
http://cvs.savannah.gnu.org/viewcvs/nmh/uip/distsbr.c?cvsroot=nmh&r1=1.3&r2=1.4
http://cvs.savannah.gnu.org/viewcvs/nmh/uip/flist.c?cvsroot=nmh&r1=1.10&r2=1.11
http://cvs.savannah.gnu.org/viewcvs/nmh/uip/ftpsbr.c?cvsroot=nmh&r1=1.4&r2=1.5
http://cvs.savannah.gnu.org/viewcvs/nmh/uip/mhbuildsbr.c?cvsroot=nmh&r1=1.15&r2=1.16
http://cvs.savannah.gnu.org/viewcvs/nmh/uip/mhlsbr.c?cvsroot=nmh&r1=1.11&r2=1.12
http://cvs.savannah.gnu.org/viewcvs/nmh/uip/mhparse.c?cvsroot=nmh&r1=1.15&r2=1.16
http://cvs.savannah.gnu.org/viewcvs/nmh/uip/msh.c?cvsroot=nmh&r1=1.11&r2=1.12
http://cvs.savannah.gnu.org/viewcvs/nmh/uip/mshcmds.c?cvsroot=nmh&r1=1.15&r2=1.16
http://cvs.savannah.gnu.org/viewcvs/nmh/uip/popsbr.c?cvsroot=nmh&r1=1.16&r2=1.17
http://cvs.savannah.gnu.org/viewcvs/nmh/uip/post.c?cvsroot=nmh&r1=1.19&r2=1.20
http://cvs.savannah.gnu.org/viewcvs/nmh/uip/replsbr.c?cvsroot=nmh&r1=1.10&r2=1.11
http://cvs.savannah.gnu.org/viewcvs/nmh/uip/scansbr.c?cvsroot=nmh&r1=1.10&r2=1.11
http://cvs.savannah.gnu.org/viewcvs/nmh/uip/show.c?cvsroot=nmh&r1=1.9&r2=1.10
http://cvs.savannah.gnu.org/viewcvs/nmh/uip/slocal.c?cvsroot=nmh&r1=1.23&r2=1.24
http://cvs.savannah.gnu.org/viewcvs/nmh/uip/sortm.c?cvsroot=nmh&r1=1.13&r2=1.14
http://cvs.savannah.gnu.org/viewcvs/nmh/uip/spost.c?cvsroot=nmh&r1=1.18&r2=1.19

Patches:
Index: h/mf.h
===================================================================
RCS file: /sources/nmh/nmh/h/mf.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- h/mf.h      12 May 2000 05:19:14 -0000      1.1
+++ h/mf.h      13 Apr 2007 11:53:08 -0000      1.2
@@ -2,7 +2,7 @@
 /*
  * mf.h -- include file for mailbox filters
  *
- * $Id: mf.h,v 1.1 2000/05/12 05:19:14 ssen Exp $
+ * $Id: mf.h,v 1.2 2007/04/13 11:53:08 jjr Exp $
  */
 
 #include <h/nmh.h>
@@ -73,7 +73,7 @@
  * prototypes
  */
 int isfrom(char *);
-int lequal (char *, char *);
+int lequal (unsigned char *, unsigned char *);
 int mfgets (FILE *, char **);
 char *legal_person (char *);
 struct adrx *seekadrx (char *);

Index: h/prototypes.h
===================================================================
RCS file: /sources/nmh/nmh/h/prototypes.h,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -b -r1.17 -r1.18
--- h/prototypes.h      27 Apr 2006 12:00:28 -0000      1.17
+++ h/prototypes.h      13 Apr 2007 11:53:08 -0000      1.18
@@ -2,7 +2,7 @@
 /*
  * prototypes.h -- various prototypes
  *
- * $Id: prototypes.h,v 1.17 2006/04/27 12:00:28 jjr Exp $
+ * $Id: prototypes.h,v 1.18 2007/04/13 11:53:08 jjr Exp $
  */
 
 /*
@@ -107,7 +107,7 @@
 int seq_delsel (struct msgs *, char *, int, int);
 int seq_getnum (struct msgs *, char *);
 char *seq_list (struct msgs *, char *);
-int seq_nameok (char *);
+int seq_nameok (unsigned char *);
 void seq_print (struct msgs *, char *);
 void seq_printall (struct msgs *);
 void seq_read (struct msgs *);
@@ -120,7 +120,7 @@
 char *snprintb (char *, size_t, unsigned, char *);
 int ssequal (char *, char *);
 int stringdex (char *, char *);
-char *trimcpy (char *);
+char *trimcpy (unsigned char *);
 int unputenv (char *);
 int uprf (char *, char *);
 int vfgets (FILE *, char **);

Index: mts/smtp/hosts.c
===================================================================
RCS file: /sources/nmh/nmh/mts/smtp/hosts.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- mts/smtp/hosts.c    8 Mar 2006 12:14:16 -0000       1.7
+++ mts/smtp/hosts.c    13 Apr 2007 11:53:08 -0000      1.8
@@ -2,7 +2,7 @@
 /*
  * hosts.c -- find out the official name of a host
  *
- * $Id: hosts.c,v 1.7 2006/03/08 12:14:16 bress Exp $
+ * $Id: hosts.c,v 1.8 2007/04/13 11:53:08 jjr Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -36,7 +36,8 @@
 char *
 OfficialName (char *name)
 {
-    char *p, *q, site[BUFSIZ];
+    unsigned char *p;
+    char *q, site[BUFSIZ];
     struct hostent *hp;
 
     static char buffer[BUFSIZ];
@@ -85,7 +86,8 @@
 static int
 init_hs (void)
 {
-    char  *cp, *dp, **q, **r;
+    unsigned char  *cp;
+    char *dp, **q, **r;
     char buffer[BUFSIZ], *aliases[NALIASES];
     register struct host *h;
     register FILE  *fp;

Index: mts/smtp/smtp.c
===================================================================
RCS file: /sources/nmh/nmh/mts/smtp/smtp.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -b -r1.18 -r1.19
--- mts/smtp/smtp.c     8 Nov 2005 16:51:37 -0000       1.18
+++ mts/smtp/smtp.c     13 Apr 2007 11:53:08 -0000      1.19
@@ -1,7 +1,7 @@
 /*
  * smtp.c -- nmh SMTP interface
  *
- * $Id: smtp.c,v 1.18 2005/11/08 16:51:37 opk Exp $
+ * $Id: smtp.c,v 1.19 2007/04/13 11:53:08 jjr Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -1570,7 +1570,8 @@
 smhear (void)
 {
     int i, code, cont, bc, rc, more;
-    char *bp, *rp;
+    unsigned char *bp;
+    char *rp;
     char **ehlo, buffer[BUFSIZ];
 
     if (doingEHLO) {

Index: sbr/dtimep.lex
===================================================================
RCS file: /sources/nmh/nmh/sbr/dtimep.lex,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- sbr/dtimep.lex      6 Feb 2001 20:35:40 -0000       1.9
+++ sbr/dtimep.lex      13 Apr 2007 11:53:08 -0000      1.10
@@ -227,7 +227,7 @@
   
   YY_BUFFER_STATE lexhandle;
 
-  register char *cp;
+  register unsigned char *cp;
   static struct tws tw; 
 
   memset(&tw,0,sizeof(struct tws));

Index: sbr/fmt_compile.c
===================================================================
RCS file: /sources/nmh/nmh/sbr/fmt_compile.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- sbr/fmt_compile.c   18 May 2005 12:50:45 -0000      1.7
+++ sbr/fmt_compile.c   13 Apr 2007 11:53:08 -0000      1.8
@@ -2,7 +2,7 @@
 /*
  * fmt_compile.c -- "compile" format strings for fmt_scan
  *
- * $Id: fmt_compile.c,v 1.7 2005/05/18 12:50:45 opk Exp $
+ * $Id: fmt_compile.c,v 1.8 2007/04/13 11:53:08 jjr Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -183,7 +183,7 @@
 #define PUTC(c)                        NEW(FT_CHAR,0,0); fp->f_char = (c);
 
 static char *format_string;
-static char *usr_fstring;      /* for CERROR */
+static unsigned char *usr_fstring;     /* for CERROR */
 
 #define CERROR(str) compile_error (str, cp)
 

Index: sbr/fmt_scan.c
===================================================================
RCS file: /sources/nmh/nmh/sbr/fmt_scan.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -b -r1.23 -r1.24
--- sbr/fmt_scan.c      14 Apr 2006 07:54:26 -0000      1.23
+++ sbr/fmt_scan.c      13 Apr 2007 11:53:08 -0000      1.24
@@ -2,7 +2,7 @@
 /*
  * fmt_scan.c -- format string interpretation
  *
- * $Id: fmt_scan.c,v 1.23 2006/04/14 07:54:26 jjr Exp $
+ * $Id: fmt_scan.c,v 1.24 2007/04/13 11:53:08 jjr Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -295,8 +295,10 @@
 struct format *
 fmt_scan (struct format *format, char *scanl, int width, int *dat)
 {
-    char *cp, *ep, *sp;
-    char *savestr, *str = NULL;
+    char *cp, *ep;
+    unsigned char *sp;
+    char *savestr;
+    unsigned char *str = NULL;
     char buffer[BUFSIZ], buffer2[BUFSIZ];
     int i, c, ljust, n;
     int value = 0;
@@ -493,7 +495,7 @@
 
        case FT_LS_TRIM:
            if (str) {
-                   char *xp;
+                   unsigned char *xp;
 
                    strncpy(buffer, str, sizeof(buffer));
                    buffer[sizeof(buffer)-1] = '\0';
@@ -801,7 +803,8 @@
             * (e.g., "To: ")
             */
            {
-           char *lp, *lastb;
+           unsigned char *lp;
+           char *lastb;
            int indent, wid, len;
 
            lp = str;

Index: sbr/m_atoi.c
===================================================================
RCS file: /sources/nmh/nmh/sbr/m_atoi.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- sbr/m_atoi.c        2 Jul 2002 22:09:14 -0000       1.2
+++ sbr/m_atoi.c        13 Apr 2007 11:53:08 -0000      1.3
@@ -4,7 +4,7 @@
  *          -- return the numeric value of the message.  If the string
  *          -- contains any non-digit characters, then return 0.
  *
- * $Id: m_atoi.c,v 1.2 2002/07/02 22:09:14 kenh Exp $
+ * $Id: m_atoi.c,v 1.3 2007/04/13 11:53:08 jjr Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -18,7 +18,7 @@
 m_atoi (char *str)
 {
     int i;
-    char *cp;
+    unsigned char *cp;
 
     for (i = 0, cp = str; *cp; cp++) {
 #ifdef LOCALE

Index: sbr/m_convert.c
===================================================================
RCS file: /sources/nmh/nmh/sbr/m_convert.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- sbr/m_convert.c     23 Aug 2002 20:37:01 -0000      1.3
+++ sbr/m_convert.c     13 Apr 2007 11:53:08 -0000      1.4
@@ -2,7 +2,7 @@
 /*
  * m_convert.c -- parse a message range or sequence and set SELECTED
  *
- * $Id: m_convert.c,v 1.3 2002/08/23 20:37:01 jon Exp $
+ * $Id: m_convert.c,v 1.4 2007/04/13 11:53:08 jjr Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -40,7 +40,8 @@
 m_convert (struct msgs *mp, char *name)
 {
     int first, last, found, range, err;
-    char *bp, *cp;
+    unsigned char *bp;
+    char *cp;
 
     /* check if user defined sequence */
     err = attr (mp, cp = name);
@@ -240,8 +241,8 @@
 m_conv (struct msgs *mp, char *str, int call)
 {
     register int i;
-    register char *cp, *bp;
-    char buf[16];
+    register unsigned char *cp, *bp;
+    unsigned char buf[16];
 
     convdir = 1;
     cp = bp = str;
@@ -326,7 +327,7 @@
 static int
 attr (struct msgs *mp, char *cp)
 {
-    register char *dp;
+    register unsigned char *dp;
     char *bp = NULL;
     register int i, j;
     int found,

Index: sbr/mf.c
===================================================================
RCS file: /sources/nmh/nmh/sbr/mf.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- sbr/mf.c    6 Jan 2006 21:51:44 -0000       1.6
+++ sbr/mf.c    13 Apr 2007 11:53:08 -0000      1.7
@@ -2,7 +2,7 @@
 /*
  * mf.c -- mail filter subroutines
  *
- * $Id: mf.c,v 1.6 2006/01/06 21:51:44 bress Exp $
+ * $Id: mf.c,v 1.7 2007/04/13 11:53:08 jjr Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -18,7 +18,7 @@
  * static prototypes
  */
 static char *getcpy (char *);
-static void compress (char *, char *);
+static void compress (char *, unsigned char *);
 static int isat (char *);
 static int parse_address (void);
 static int phrase (char *);
@@ -57,7 +57,7 @@
 
 
 int
-lequal (char *a, char *b)
+lequal (unsigned char *a, unsigned char *b)
 {
     for (; *a; a++, b++)
        if (*b == 0)
@@ -133,7 +133,8 @@
 struct adrx *
 uucpadrx (char *addrs)
 {
-    register char *cp, *wp, *xp, *yp, *zp;
+    register unsigned char *cp, *wp, *xp, *yp;
+    register char *zp;
     register struct adrx *adrxp = &adrxs1;
 
     if (vp == NULL) {
@@ -206,9 +207,10 @@
 
 
 static void
-compress (char *fp, char *tp)
+compress (char *fp, unsigned char *tp)
 {
-    register char c, *cp;
+    register char c;
+    register unsigned char *cp;
 
     for (c = ' ', cp = tp; (*tp = *fp++) != 0;)
        if (isspace (*tp)) {
@@ -333,8 +335,8 @@
 static int last_lex = LX_END;
 
 static char *dp = NULL;
-static char *cp = NULL;
-static char *ap = NULL;
+static unsigned char *cp = NULL;
+static unsigned char *ap = NULL;
 static char *pers = NULL;
 static char *mbox = NULL;
 static char *host = NULL;
@@ -759,7 +761,8 @@
 {
     /* buffer should be at least BUFSIZ bytes long */
     int i, gotat = 0;
-    register char c, *bp;
+    register unsigned char c;
+    register char *bp;
 
 /* Add C to the buffer bp. After use of this macro *bp is guaranteed to be 
within the buffer. */
 #define ADDCHR(C) do { *bp++ = (C); if ((bp - buffer) == (BUFSIZ-1)) goto 
my_lex_buffull; } while (0)

Index: sbr/mts.c
===================================================================
RCS file: /sources/nmh/nmh/sbr/mts.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- sbr/mts.c   2 Jan 2006 03:17:42 -0000       1.4
+++ sbr/mts.c   13 Apr 2007 11:53:08 -0000      1.5
@@ -2,7 +2,7 @@
 /*
  * mts.c -- definitions for the mail transport system
  *
- * $Id: mts.c,v 1.4 2006/01/02 03:17:42 bress Exp $
+ * $Id: mts.c,v 1.5 2007/04/13 11:53:08 jjr Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -31,7 +31,7 @@
 /*
  * static prototypes
  */
-static char *tailor_value (char *);
+static char *tailor_value (unsigned char *);
 static void getuserinfo (void);
 
 /*
@@ -172,7 +172,8 @@
 void
 mts_init (char *name)
 {
-    char *bp, *cp, buffer[BUFSIZ];
+    unsigned char *bp;
+    char *cp, buffer[BUFSIZ];
     struct bind *b;
     FILE *fp;
     static int inited = 0;
@@ -233,7 +234,7 @@
  */
 
 static char *
-tailor_value (char *s)
+tailor_value (unsigned char *s)
 {
     int i, r;
     char *bp;
@@ -406,7 +407,8 @@
 static void
 getuserinfo (void)
 {
-    register char *cp, *np;
+    register unsigned char *cp;
+    register char *np;
     register struct passwd *pw;
 
 #ifdef KPOP

Index: sbr/seq_nameok.c
===================================================================
RCS file: /sources/nmh/nmh/sbr/seq_nameok.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- sbr/seq_nameok.c    2 Jul 2002 22:09:14 -0000       1.2
+++ sbr/seq_nameok.c    13 Apr 2007 11:53:08 -0000      1.3
@@ -2,7 +2,7 @@
 /*
  * seq_nameok.c -- check if a sequence name is ok
  *
- * $Id: seq_nameok.c,v 1.2 2002/07/02 22:09:14 kenh Exp $
+ * $Id: seq_nameok.c,v 1.3 2007/04/13 11:53:08 jjr Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -13,9 +13,9 @@
 
 
 int
-seq_nameok (char *s)
+seq_nameok (unsigned char *s)
 {
-    char *pp;
+    unsigned char *pp;
 
     if (s == NULL || *s == '\0') {
        advise (NULL, "empty sequence name");

Index: sbr/trimcpy.c
===================================================================
RCS file: /sources/nmh/nmh/sbr/trimcpy.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- sbr/trimcpy.c       2 Jul 2002 22:09:14 -0000       1.2
+++ sbr/trimcpy.c       13 Apr 2007 11:53:08 -0000      1.3
@@ -4,7 +4,7 @@
  *           -- replace internal whitespace with spaces,
  *           -- then return a copy.
  *
- * $Id: trimcpy.c,v 1.2 2002/07/02 22:09:14 kenh Exp $
+ * $Id: trimcpy.c,v 1.3 2007/04/13 11:53:08 jjr Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -15,9 +15,9 @@
 
 
 char *
-trimcpy (char *cp)
+trimcpy (unsigned char *cp)
 {
-    char *sp;
+    unsigned char *sp;
 
     /* skip over leading whitespace */
     while (isspace(*cp))

Index: uip/aliasbr.c
===================================================================
RCS file: /sources/nmh/nmh/uip/aliasbr.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- uip/aliasbr.c       8 Mar 2006 12:14:16 -0000       1.7
+++ uip/aliasbr.c       13 Apr 2007 11:53:08 -0000      1.8
@@ -2,7 +2,7 @@
 /*
  * aliasbr.c -- new aliasing mechanism
  *
- * $Id: aliasbr.c,v 1.7 2006/03/08 12:14:16 bress Exp $
+ * $Id: aliasbr.c,v 1.8 2007/04/13 11:53:08 jjr Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -36,7 +36,7 @@
 
 static  char *akval (struct aka *, char *);
 static int aleq (char *, char *);
-static char *scanp (char *);
+static char *scanp (unsigned char *);
 static char *getp (char *);
 static char *seekp (char *, char *, char **);
 static int addfile (struct aka *, char *);
@@ -279,7 +279,7 @@
 
 
 static char *
-scanp (char *p)
+scanp (unsigned char *p)
 {
     while (isspace (*p))
        p++;
@@ -290,7 +290,7 @@
 static char *
 getp (char *p)
 {
-    register char  *cp = scanp (p);
+    register unsigned char  *cp = scanp (p);
 
     p = cp;
     while (!isspace (*cp) && *cp)
@@ -304,7 +304,7 @@
 static char *
 seekp (char *p, char *c, char **a)
 {
-    register char *cp;
+    register unsigned char *cp;
 
     p = cp = scanp (p);
     while (!isspace (*cp) && *cp && *cp != ':' && *cp != ';')
@@ -436,7 +436,7 @@
 static char *
 getalias (char *addrs)
 {
-    register char *pp, *qp;
+    register unsigned char *pp, *qp;
     static char *cp = NULL;
 
     if (cp == NULL)
@@ -566,7 +566,8 @@
 #ifdef DBMPWD
     struct passwd *pw;
     char lname[32];
-    char *c,*c1;
+    unsigned char *c;
+    char *c1;
 #else  /* DBMPWD */
 
     if (homehead == NULL)

Index: uip/anno.c
===================================================================
RCS file: /sources/nmh/nmh/uip/anno.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- uip/anno.c  27 Apr 2006 12:00:28 -0000      1.10
+++ uip/anno.c  13 Apr 2007 11:53:08 -0000      1.11
@@ -2,7 +2,7 @@
 /*
  * anno.c -- annotate messages
  *
- * $Id: anno.c,v 1.10 2006/04/27 12:00:28 jjr Exp $
+ * $Id: anno.c,v 1.11 2007/04/13 11:53:08 jjr Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -85,7 +85,7 @@
 /*
  * static prototypes
  */
-static void make_comp (char **);
+static void make_comp (unsigned char **);
 
 
 int
@@ -93,7 +93,8 @@
 {
     int inplace = 1, datesw = 1;
     int msgnum;
-    char *cp, *maildir, *comp = NULL;
+    char *cp, *maildir;
+    unsigned char *comp = NULL;
     char *text = NULL, *folder = NULL, buf[BUFSIZ];
     char **argp, **arguments;
     struct msgs_array msgs = { 0, 0, NULL };
@@ -288,9 +289,9 @@
 }
 
 static void
-make_comp (char **ap)
+make_comp (unsigned char **ap)
 {
-    register char *cp;
+    register unsigned char *cp;
     char buffer[BUFSIZ];
 
     if (*ap == NULL) {

Index: uip/distsbr.c
===================================================================
RCS file: /sources/nmh/nmh/uip/distsbr.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- uip/distsbr.c       6 Jan 2006 21:51:44 -0000       1.3
+++ uip/distsbr.c       13 Apr 2007 11:53:08 -0000      1.4
@@ -2,7 +2,7 @@
 /*
  * distsbr.c -- routines to do additional "dist-style" processing
  *
- * $Id: distsbr.c,v 1.3 2006/01/06 21:51:44 bress Exp $
+ * $Id: distsbr.c,v 1.4 2007/04/13 11:53:08 jjr Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -30,7 +30,8 @@
 distout (char *drft, char *msgnam, char *backup)
 {
     int state;
-    register char *dp, *resent;
+    register unsigned char *dp;
+    register char *resent;
     char name[NAMESZ], buffer[BUFSIZ];
     register FILE *ifp, *ofp;
 

Index: uip/flist.c
===================================================================
RCS file: /sources/nmh/nmh/uip/flist.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- uip/flist.c 27 Apr 2006 12:00:28 -0000      1.10
+++ uip/flist.c 13 Apr 2007 11:53:08 -0000      1.11
@@ -13,7 +13,7 @@
  * makes no warranty about the software, its performance or its conformity to
  * any specification.
  *
- *  $Id: flist.c,v 1.10 2006/04/27 12:00:28 jjr Exp $
+ *  $Id: flist.c,v 1.11 2007/04/13 11:53:08 jjr Exp $
  */
 
 #include <h/mh.h>
@@ -287,7 +287,7 @@
 void
 GetFolderOrder(void)
 {
-    char *p, *s;
+    unsigned char *p, *s;
     int priority = 1;
     struct Folder *o;
 
@@ -399,7 +399,8 @@
 void
 BuildFolderListRecurse(char *dirName, struct stat *s, int searchdepth)
 {
-    char *base, *n, name[PATH_MAX];
+    char *base, name[PATH_MAX];
+    unsigned char *n;
     int nlinks;
     DIR *dir;
     struct dirent *dp;

Index: uip/ftpsbr.c
===================================================================
RCS file: /sources/nmh/nmh/uip/ftpsbr.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- uip/ftpsbr.c        2 Jul 2002 22:09:14 -0000       1.4
+++ uip/ftpsbr.c        13 Apr 2007 11:53:08 -0000      1.5
@@ -2,7 +2,7 @@
 /*
  * ftpsbr.c -- simple FTP client library
  *
- * $Id: ftpsbr.c,v 1.4 2002/07/02 22:09:14 kenh Exp $
+ * $Id: ftpsbr.c,v 1.5 2007/04/13 11:53:08 jjr Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -475,7 +475,7 @@
        bp = buffer;
 
        for (;;) {
-           char c;
+           unsigned char c;
 
            if (read_tcp_socket (ftp_fd, &c, 1) < 1) {
                if (expecteof)

Index: uip/mhbuildsbr.c
===================================================================
RCS file: /sources/nmh/nmh/uip/mhbuildsbr.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -b -r1.15 -r1.16
--- uip/mhbuildsbr.c    27 Apr 2006 12:00:28 -0000      1.15
+++ uip/mhbuildsbr.c    13 Apr 2007 11:53:08 -0000      1.16
@@ -2,7 +2,7 @@
 /*
  * mhbuildsbr.c -- routines to expand/translate MIME composition files
  *
- * $Id: mhbuildsbr.c,v 1.15 2006/04/27 12:00:28 jjr Exp $
+ * $Id: mhbuildsbr.c,v 1.16 2007/04/13 11:53:08 jjr Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -152,8 +152,8 @@
  */
 static CT get_content (FILE *, char *, int);
 static int add_header (CT, char *, char *);
-static int get_ctinfo (char *, CT, int);
-static int get_comment (CT, char **, int);
+static int get_ctinfo (unsigned char *, CT, int);
+static int get_comment (CT, unsigned char **, int);
 static int InitGeneric (CT);
 static int InitText (CT);
 static int InitMultiPart (CT);
@@ -186,7 +186,7 @@
 static int build_headers (CT);
 static char *calculate_digest (CT, int);
 static int readDigest (CT, char *);
-static char *incl_name_value (char *, char *, char *);
+static char *incl_name_value (unsigned char *, char *, char *);
 static char *extract_name_value (char *, char *);
 
 /*
@@ -499,7 +499,8 @@
            /* Get MIME-Version field */
            if (!mh_strcasecmp (name, VRSN_FIELD)) {
                int ucmp;
-               char c, *cp, *dp;
+               char c;
+               unsigned char *cp, *dp;
 
                cp = add (buf, NULL);
                while (state == FLDPLUS) {
@@ -585,7 +586,7 @@
 
            /* Get Content-Transfer-Encoding field */
            if (!mh_strcasecmp (name, ENCODING_FIELD)) {
-               char *cp, *dp;
+               unsigned char *cp, *dp;
                char c;
                struct str2init *s2i;
 
@@ -665,7 +666,8 @@
 
            /* Get Content-MD5 field */
            if (!mh_strcasecmp (name, MD5_FIELD)) {
-               char *cp, *dp, *ep;
+               unsigned char *cp, *dp;
+               char *ep;
 
                cp = add (buf, NULL);
                while (state == FLDPLUS) {
@@ -828,10 +830,11 @@
  */
 
 static int
-get_ctinfo (char *cp, CT ct, int magic)
+get_ctinfo (unsigned char *cp, CT ct, int magic)
 {
     int        i;
-    char *dp, **ap, **ep;
+    unsigned char *dp;
+    char **ap, **ep;
     char c;
     CI ci;
 
@@ -926,7 +929,8 @@
      */
     ep = (ap = ci->ci_attrs) + NPARMS;
     while (*cp == ';') {
-       char *vp, *up;
+       char *vp;
+       unsigned char *up;
 
        if (ap >= ep) {
            advise (NULL,
@@ -1127,10 +1131,11 @@
 
 
 static int
-get_comment (CT ct, char **ap, int istype)
+get_comment (CT ct, unsigned char **ap, int istype)
 {
     int i;
-    char *bp, *cp;
+    char *bp;
+    unsigned char *cp;
     char c, buffer[BUFSIZ], *dp;
     CI ci;
 
@@ -1259,7 +1264,8 @@
 {
     int        inout;
     long last, pos;
-    char *cp, *dp, **ap, **ep;
+    unsigned char *cp, *dp;
+    char **ap, **ep;
     char *bp, buffer[BUFSIZ];
     struct multipart *m;
     struct k2v *kv;
@@ -1895,7 +1901,8 @@
     int fd, len, skip;
     unsigned long bits;
     unsigned char value, *b, *b1, *b2, *b3;
-    char *cp, *ep, buffer[BUFSIZ];
+    unsigned char *cp, *ep;
+    char buffer[BUFSIZ];
     CE ce;
     MD5_CTX mdContext;
 
@@ -2091,7 +2098,7 @@
 openQuoted (CT ct, char **file)
 {
     int        cc, digested, len, quoted;
-    char *cp, *ep;
+    unsigned char *cp, *ep;
     char buffer[BUFSIZ];
     unsigned char mask;
     CE ce;
@@ -2918,7 +2925,8 @@
 user_content (FILE *in, char *file, char *buf, CT *ctp)
 {
     int        extrnal, vrsn;
-    char *cp, **ap;
+    unsigned char *cp;
+    char **ap;
     char buffer[BUFSIZ];
     struct multipart *m;
     struct part **pp;
@@ -3702,7 +3710,7 @@
     int checkboundary, boundaryclash = 0; /* check if clashes with multipart 
boundary   */
     int checklinespace, linespace = 0;   /* check if any line ends with space  
        */
     int checkebcdic, ebcdicunsafe = 0;   /* check if contains ebcdic unsafe 
characters */
-    char *cp, buffer[BUFSIZ];
+    unsigned char *cp, buffer[BUFSIZ];
     struct text *t;
     FILE *in;
     CE ce = ct->c_cefile;
@@ -4325,7 +4333,7 @@
    filename="foo".  If it doesn't and value does, use value from
    that. */
 static char *
-incl_name_value (char *buf, char *name, char *value) {
+incl_name_value (unsigned char *buf, char *name, char *value) {
     char *newbuf = buf;
 
     /* Assume that name is non-null. */
@@ -4334,7 +4342,7 @@
 
        if (! strstr (buf, name_plus_equal)) {
            char *insertion;
-           char *cp;
+           unsigned char *cp;
            char *prefix, *suffix;
 
            /* Trim trailing space, esp. newline. */

Index: uip/mhlsbr.c
===================================================================
RCS file: /sources/nmh/nmh/uip/mhlsbr.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -b -r1.11 -r1.12
--- uip/mhlsbr.c        10 Apr 2007 06:13:27 -0000      1.11
+++ uip/mhlsbr.c        13 Apr 2007 11:53:08 -0000      1.12
@@ -2,7 +2,7 @@
 /*
  * mhlsbr.c -- main routines for nmh message lister
  *
- * $Id: mhlsbr.c,v 1.11 2007/04/10 06:13:27 jjr Exp $
+ * $Id: mhlsbr.c,v 1.12 2007/04/13 11:53:08 jjr Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -230,7 +230,7 @@
 
 static char *ovtxt;
 
-static char *onelp;
+static unsigned char *onelp;
 
 static char *parptr;
 
@@ -1185,7 +1185,7 @@
 putcomp (struct mcomp *c1, struct mcomp *c2, int flag)
 {
     int count, cchdr;
-    char *cp;
+    unsigned char *cp;
 
     cchdr = 0;
     lm = 0;

Index: uip/mhparse.c
===================================================================
RCS file: /sources/nmh/nmh/uip/mhparse.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -b -r1.15 -r1.16
--- uip/mhparse.c       10 Apr 2007 03:32:48 -0000      1.15
+++ uip/mhparse.c       13 Apr 2007 11:53:08 -0000      1.16
@@ -2,7 +2,7 @@
 /*
  * mhparse.c -- routines to parse the contents of MIME messages
  *
- * $Id: mhparse.c,v 1.15 2007/04/10 03:32:48 jjr Exp $
+ * $Id: mhparse.c,v 1.16 2007/04/13 11:53:08 jjr Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -127,8 +127,8 @@
  */
 static CT get_content (FILE *, char *, int);
 static int add_header (CT, char *, char *);
-static int get_ctinfo (char *, CT);
-static int get_comment (CT, char **, int);
+static int get_ctinfo (unsigned char *, CT);
+static int get_comment (CT, unsigned char **, int);
 static int InitGeneric (CT);
 static int InitText (CT);
 static int InitMultiPart (CT);
@@ -377,7 +377,8 @@
        /* Get MIME-Version field */
        if (!mh_strcasecmp (hp->name, VRSN_FIELD)) {
            int ucmp;
-           char c, *cp, *dp;
+           char c;
+           unsigned char *cp, *dp;
 
            if (ct->c_vrsn) {
                advise (NULL, "message %s has multiple %s: fields",
@@ -444,7 +445,8 @@
        }
        else if (!mh_strcasecmp (hp->name, ENCODING_FIELD)) {
        /* Get Content-Transfer-Encoding field */
-           char c, *cp, *dp;
+           char c;
+           unsigned char *cp, *dp;
            struct str2init *s2i;
 
            /*
@@ -485,7 +487,8 @@
        }
        else if (!mh_strcasecmp (hp->name, MD5_FIELD)) {
        /* Get Content-MD5 field */
-           char *cp, *dp, *ep;
+           unsigned char *cp, *dp;
+           char *ep;
 
            if (!checksw)
                goto next_header;
@@ -611,10 +614,11 @@
  */
 
 static int
-get_ctinfo (char *cp, CT ct)
+get_ctinfo (unsigned char *cp, CT ct)
 {
     int        i;
-    char *dp, **ap, **ep;
+    unsigned char *dp;
+    char **ap, **ep;
     char c;
     CI ci;
 
@@ -708,7 +712,8 @@
      */
     ep = (ap = ci->ci_attrs) + NPARMS;
     while (*cp == ';') {
-       char *vp, *up;
+       char *vp;
+       unsigned char *up;
 
        if (ap >= ep) {
            advise (NULL,
@@ -812,10 +817,11 @@
 
 
 static int
-get_comment (CT ct, char **ap, int istype)
+get_comment (CT ct, unsigned char **ap, int istype)
 {
     int i;
-    char *bp, *cp;
+    char *bp;
+    unsigned char *cp;
     char c, buffer[BUFSIZ], *dp;
     CI ci;
 
@@ -956,7 +962,8 @@
 {
     int        inout;
     long last, pos;
-    char *cp, *dp, **ap, **ep;
+    unsigned char *cp, *dp;
+    char **ap, **ep;
     char *bp, buffer[BUFSIZ];
     struct multipart *m;
     struct k2v *kv;
@@ -1568,7 +1575,8 @@
     int fd, len, skip;
     unsigned long bits;
     unsigned char value, *b, *b1, *b2, *b3;
-    char *cp, *ep, buffer[BUFSIZ];
+    unsigned char *cp, *ep;
+    char buffer[BUFSIZ];
     /* sbeck -- handle prefixes */
     CI ci;
     CE ce;
@@ -1779,7 +1787,7 @@
 openQuoted (CT ct, char **file)
 {
     int        cc, digested, len, quoted;
-    char *cp, *ep;
+    unsigned char *cp, *ep;
     char buffer[BUFSIZ];
     unsigned char mask;
     CE ce;

Index: uip/msh.c
===================================================================
RCS file: /sources/nmh/nmh/uip/msh.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -b -r1.11 -r1.12
--- uip/msh.c   27 Apr 2006 12:00:28 -0000      1.11
+++ uip/msh.c   13 Apr 2007 11:53:08 -0000      1.12
@@ -2,7 +2,7 @@
 /*
  * msh.c -- The nmh shell
  *
- * $Id: msh.c,v 1.11 2006/04/27 12:00:28 jjr Exp $
+ * $Id: msh.c,v 1.12 2007/04/13 11:53:08 jjr Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -1544,7 +1544,8 @@
 parse (char *buffer, struct Cmd *cmdp)
 {
     int argp = 0;
-    char c, *cp, *pp;
+    unsigned char c, *cp;
+    char *pp;
 
     cmdp->line[0] = 0;
     pp = cmdp->args[argp++] = cmdp->line;
@@ -1891,7 +1892,7 @@
 pINI (void)
 {
     int i, vrsn;
-    char *bp;
+    unsigned char *bp;
     struct record rcs, *rc;
 
     rc = &rcs;

Index: uip/mshcmds.c
===================================================================
RCS file: /sources/nmh/nmh/uip/mshcmds.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -b -r1.15 -r1.16
--- uip/mshcmds.c       27 Apr 2006 12:00:28 -0000      1.15
+++ uip/mshcmds.c       13 Apr 2007 11:53:08 -0000      1.16
@@ -2,7 +2,7 @@
 /*
  * mshcmds.c -- command handlers in msh
  *
- * $Id: mshcmds.c,v 1.15 2006/04/27 12:00:28 jjr Exp $
+ * $Id: mshcmds.c,v 1.16 2007/04/13 11:53:08 jjr Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -2547,7 +2547,8 @@
 is_nontext (int msgnum)
 {
     int        result, state;
-    char *bp, *cp, *dp;
+    unsigned char *bp, *dp;
+    char *cp;
     char buf[BUFSIZ], name[NAMESZ];
     FILE *fp;
 
@@ -2960,7 +2961,8 @@
 static char *
 sosmash (char *subj, char *s)
 {
-    register char *cp, *dp, c;
+    register char *cp, *dp;
+    register unsigned char c;
 
     if (s) {
        cp = s;

Index: uip/popsbr.c
===================================================================
RCS file: /sources/nmh/nmh/uip/popsbr.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -b -r1.16 -r1.17
--- uip/popsbr.c        8 Mar 2006 12:14:16 -0000       1.16
+++ uip/popsbr.c        13 Apr 2007 11:53:08 -0000      1.17
@@ -1,7 +1,7 @@
 /*
  * popsbr.c -- POP client subroutines
  *
- * $Id: popsbr.c,v 1.16 2006/03/08 12:14:16 bress Exp $
+ * $Id: popsbr.c,v 1.17 2007/04/13 11:53:08 jjr Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -455,7 +455,7 @@
     int pargc = 2;
     int hlen = strlen(host);
     int plen = 1;
-    char *cur, *pro;
+    unsigned char *cur, *pro;
     char *c;
     
     /* skip any initial space */

Index: uip/post.c
===================================================================
RCS file: /sources/nmh/nmh/uip/post.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -b -r1.19 -r1.20
--- uip/post.c  8 Mar 2006 12:14:16 -0000       1.19
+++ uip/post.c  13 Apr 2007 11:53:08 -0000      1.20
@@ -2,7 +2,7 @@
 /*
  * post.c -- enter messages into the mail transport system
  *
- * $Id: post.c,v 1.19 2006/03/08 12:14:16 bress Exp $
+ * $Id: post.c,v 1.20 2007/04/13 11:53:08 jjr Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -294,7 +294,7 @@
 static void pl (void);
 static void anno (void);
 static int annoaux (struct mailname *);
-static void insert_fcc (struct headers *, char *);
+static void insert_fcc (struct headers *, unsigned char *);
 static void make_bcc_file (int);
 static void verify_all_addresses (int);
 static void chkadr (void);
@@ -830,7 +830,7 @@
 static void
 start_headers (void)
 {
-    char  *cp;
+    unsigned char  *cp;
     char myhost[BUFSIZ], sigbuf[BUFSIZ];
     struct mailname *mp;
 
@@ -1128,9 +1128,9 @@
 
 
 static void
-insert_fcc (struct headers *hdr, char *pp)
+insert_fcc (struct headers *hdr, unsigned char *pp)
 {
-    char *cp;
+    unsigned char *cp;
 
     for (cp = pp; isspace (*cp); cp++)
        continue;
@@ -1299,7 +1299,7 @@
     result = OK;
     while (fgets (buffer, sizeof(buffer) - 1, in))
        if (buffer[0] == '-' && buffer[1] == '-') {
-           char *cp;
+           unsigned char *cp;
 
            for (cp = buffer + strlen (buffer) - 1; cp >= buffer; cp--)
                if (!isspace (*cp))

Index: uip/replsbr.c
===================================================================
RCS file: /sources/nmh/nmh/uip/replsbr.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- uip/replsbr.c       8 Mar 2006 12:14:16 -0000       1.10
+++ uip/replsbr.c       13 Apr 2007 11:53:08 -0000      1.11
@@ -2,7 +2,7 @@
 /*
  * replsbr.c -- routines to help repl along...
  *
- * $Id: replsbr.c,v 1.10 2006/03/08 12:14:16 bress Exp $
+ * $Id: replsbr.c,v 1.11 2007/04/13 11:53:08 jjr Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -79,7 +79,8 @@
     register char **ap;
     register struct comp **savecomp;
     int        char_read = 0, format_len, mask;
-    char name[NAMESZ], *scanl, *cp;
+    char name[NAMESZ], *scanl;
+    unsigned char *cp;
     FILE *out;
 
     mask = umask(~m_gmprot());

Index: uip/scansbr.c
===================================================================
RCS file: /sources/nmh/nmh/uip/scansbr.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- uip/scansbr.c       8 Mar 2006 12:14:16 -0000       1.10
+++ uip/scansbr.c       13 Apr 2007 11:53:08 -0000      1.11
@@ -2,7 +2,7 @@
 /*
  * scansbr.c -- routines to help scan along...
  *
- * $Id: scansbr.c,v 1.10 2006/03/08 12:14:16 bress Exp $
+ * $Id: scansbr.c,v 1.11 2007/04/13 11:53:08 jjr Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -74,7 +74,8 @@
       int unseen, char *folder, long size, int noisy)
 {
     int i, compnum, encrypted, state;
-    char *cp, *tmpbuf, **nxtbuf;
+    unsigned char *cp, *tmpbuf;
+    char **nxtbuf;
     char *saved_c_text;
     struct comp *cptr;
     struct comp **savecomp;

Index: uip/show.c
===================================================================
RCS file: /sources/nmh/nmh/uip/show.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- uip/show.c  27 Apr 2006 12:00:28 -0000      1.9
+++ uip/show.c  13 Apr 2007 11:53:08 -0000      1.10
@@ -2,7 +2,7 @@
 /*
  * show.c -- show/list messages
  *
- * $Id: show.c,v 1.9 2006/04/27 12:00:28 jjr Exp $
+ * $Id: show.c,v 1.10 2007/04/13 11:53:08 jjr Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -385,7 +385,8 @@
 is_nontext (char *msgnam)
 {
     int        result, state;
-    char *bp, *cp, *dp;
+    unsigned char *bp, *dp;
+    char *cp;
     char buf[BUFSIZ], name[NAMESZ];
     FILE *fp;
 

Index: uip/slocal.c
===================================================================
RCS file: /sources/nmh/nmh/uip/slocal.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -b -r1.23 -r1.24
--- uip/slocal.c        8 Mar 2006 12:14:16 -0000       1.23
+++ uip/slocal.c        13 Apr 2007 11:53:08 -0000      1.24
@@ -2,7 +2,7 @@
 /*
  * slocal.c -- asynchronously filter and deliver new mail
  *
- * $Id: slocal.c,v 1.23 2006/03/08 12:14:16 bress Exp $
+ * $Id: slocal.c,v 1.24 2007/04/13 11:53:08 jjr Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -683,7 +683,7 @@
 split (char *cp, char **vec)
 {
     int i;
-    char *s;
+    unsigned char *s;
 
     s = cp;
 
@@ -1232,8 +1232,8 @@
 get_sender (char *envelope, char **sender)
 {
     int i;
-    char *cp;
-    char buffer[BUFSIZ];
+    unsigned char *cp;
+    unsigned char buffer[BUFSIZ];
 
     if (envelope == NULL) {
        *sender = getcpy ("");
@@ -1412,7 +1412,7 @@
 trim (char *cp)
 {
     char buffer[BUFSIZ*4];
-    char *bp, *sp;
+    unsigned char *bp, *sp;
 
     if (cp == NULL)
        return NULL;

Index: uip/sortm.c
===================================================================
RCS file: /sources/nmh/nmh/uip/sortm.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -b -r1.13 -r1.14
--- uip/sortm.c 27 Apr 2006 12:00:28 -0000      1.13
+++ uip/sortm.c 13 Apr 2007 11:53:08 -0000      1.14
@@ -2,7 +2,7 @@
 /*
  * sortm.c -- sort messages in a folder by date/time
  *
- * $Id: sortm.c,v 1.13 2006/04/27 12:00:28 jjr Exp $
+ * $Id: sortm.c,v 1.14 2007/04/13 11:53:08 jjr Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -70,7 +70,8 @@
 main (int argc, char **argv)
 {
     int        i, msgnum;
-    char *cp, *maildir, *datesw = NULL;
+    unsigned char *cp;
+    char *maildir, *datesw = NULL;
     char *folder = NULL, buf[BUFSIZ], **argp;
     char **arguments;
     struct msgs_array msgs = { 0, 0, NULL };
@@ -408,7 +409,8 @@
             * leading "re:", everything but letters & smash
             * letters to lower case.
             */
-           register char  *cp, *cp2, c;
+           register char  *cp, *cp2;
+           register unsigned char c;
 
            cp = subjcomp;
            cp2 = subjcomp;

Index: uip/spost.c
===================================================================
RCS file: /sources/nmh/nmh/uip/spost.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -b -r1.18 -r1.19
--- uip/spost.c 8 Mar 2006 12:14:16 -0000       1.18
+++ uip/spost.c 13 Apr 2007 11:53:08 -0000      1.19
@@ -5,7 +5,7 @@
  * This is a simpler, faster, replacement for "post" for use
  * when "sendmail" is the transport system.
  *
- * $Id: spost.c,v 1.18 2006/03/08 12:14:16 bress Exp $
+ * $Id: spost.c,v 1.19 2007/04/13 11:53:08 jjr Exp $
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -191,7 +191,7 @@
 static int get_header (char *, struct headers *);
 static void putadr (char *, struct mailname *);
 static int putone (char *, int, int);
-static void insert_fcc (struct headers *, char *);
+static void insert_fcc (struct headers *, unsigned char *);
 static void file (char *);
 static void fcc (char *, char *);
 
@@ -720,9 +720,9 @@
 
 
 static void
-insert_fcc (struct headers *hdr, char *pp)
+insert_fcc (struct headers *hdr, unsigned char *pp)
 {
-    char   *cp;
+    unsigned char   *cp;
 
     for (cp = pp; isspace (*cp); cp++)
        continue;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]