unsigned-ify

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5536 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1999-03-13 21:27:01 +00:00
parent b90213c2c0
commit 0e811d0710

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1995, 1996, 1997 Kungliga Tekniska H<>gskolan * Copyright (c) 1995, 1996, 1997, 1998, 1999 Kungliga Tekniska H<>gskolan
* (Royal Institute of Technology, Stockholm, Sweden). * (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved. * All rights reserved.
* *
@@ -111,11 +111,11 @@ parse_words(unsigned wn[],
int (*convert)(char *, void *), int (*convert)(char *, void *),
void *arg) void *arg)
{ {
char *w, *wend, c; unsigned char *w, *wend, c;
int i; int i;
int tmp; int tmp;
w = str; w = (unsigned char *)str;
for (i = 0; i < 6; ++i) { for (i = 0; i < 6; ++i) {
while (isspace(*w)) while (isspace(*w))
++w; ++w;
@@ -124,7 +124,7 @@ parse_words(unsigned wn[],
++wend; ++wend;
c = *wend; c = *wend;
*wend = '\0'; *wend = '\0';
tmp = (*convert)(w, arg); tmp = (*convert)((char *)w, arg);
*wend = c; *wend = c;
w = wend; w = wend;
if (tmp < 0) if (tmp < 0)