/* -*-c-*-
*
- * $Id: dsig.c,v 1.3 2000/07/15 20:53:23 mdw Exp $
+ * $Id: dsig.c,v 1.4 2000/08/04 23:23:44 mdw Exp $
*
* Verify signatures on distribuitions of files
*
/*----- Revision history --------------------------------------------------*
*
* $Log: dsig.c,v $
+ * Revision 1.4 2000/08/04 23:23:44 mdw
+ * Various <ctype.h> fixes.
+ *
* Revision 1.3 2000/07/15 20:53:23 mdw
* More hash functions. Bug fix in getstring.
*
again:
ch = getc(fp);
- while (isspace((unsigned char)ch))
+ while (isspace(ch))
ch = getc(fp);
if (ch == '#') {
do ch = getc(fp); while (ch != '\n' && ch != EOF);
/* -*-c-*-
*
- * $Id: hashsum.c,v 1.3 2000/07/29 17:02:43 mdw Exp $
+ * $Id: hashsum.c,v 1.4 2000/08/04 23:23:44 mdw Exp $
*
* Hash files using some secure hash function
*
/*----- Revision history --------------------------------------------------*
*
* $Log: hashsum.c,v $
+ * Revision 1.4 2000/08/04 23:23:44 mdw
+ * Various <ctype.h> fixes.
+ *
* Revision 1.3 2000/07/29 17:02:43 mdw
* (checkhash): Be pettier about spaces between the hash and filename, for
* compatiblity with `md5sum'.
/* --- Raw: just read exactly what's written up to a null byte --- */
-#define NEXTCH (fp ? getc(fp) : *p++)
+#define NEXTCH (fp ? getc(fp) : (unsigned char)*p++)
#define EOFCH (fp ? EOF : 0)
if (raw) {
again:
ch = NEXTCH;
- while (isspace((unsigned char)ch))
+ while (isspace(ch))
ch = NEXTCH;
if (ch == '#') {
do ch = NEXTCH; while (ch != '\n' && ch != EOFCH);
if (ch == q)
break;
- if (!q && isspace((unsigned char)ch))
+ if (!q && isspace(ch))
break;
/* --- Otherwise contribute and continue --- */
/* -*-c-*-
*
- * $Id: mptext-dstr.c,v 1.2 1999/12/22 15:56:21 mdw Exp $
+ * $Id: mptext-dstr.c,v 1.3 2000/08/04 23:23:44 mdw Exp $
*
* Reading and writing large integers on strings
*
/*----- Revision history --------------------------------------------------*
*
* $Log: mptext-dstr.c,v $
+ * Revision 1.3 2000/08/04 23:23:44 mdw
+ * Various <ctype.h> fixes.
+ *
* Revision 1.2 1999/12/22 15:56:21 mdw
* Make the buffer passed to `put' op constant.
*
mptext_dstrctx *c = p;
if (c->i >= c->d->len)
return (EOF);
- return (c->d->buf[c->i++]);
+ return ((unsigned char)c->d->buf[c->i++]);
}
static void unget(int ch, void *p)
/* -*-c-*-
*
- * $Id: mptext-string.c,v 1.2 1999/12/22 15:56:21 mdw Exp $
+ * $Id: mptext-string.c,v 1.3 2000/08/04 23:23:44 mdw Exp $
*
* Reading and writing large integers on strings
*
/*----- Revision history --------------------------------------------------*
*
* $Log: mptext-string.c,v $
+ * Revision 1.3 2000/08/04 23:23:44 mdw
+ * Various <ctype.h> fixes.
+ *
* Revision 1.2 1999/12/22 15:56:21 mdw
* Make the buffer passed to `put' op constant.
*
mptext_stringctx *c = p;
if (c->buf >= c->lim)
return (EOF);
- return (*c->buf++);
+ return ((unsigned char)*c->buf++);
}
static void unget(int ch, void *p)