Mercurial > hg > xemacs-beta
diff src/device-x.c @ 647:b39c14581166
[xemacs-hg @ 2001-08-13 04:45:47 by ben]
removal of unsigned, size_t, etc.
author | ben |
---|---|
date | Mon, 13 Aug 2001 04:46:48 +0000 |
parents | 190b164ddcac |
children | fdefd0186b75 |
line wrap: on
line diff
--- a/src/device-x.c Wed Aug 08 12:15:04 2001 +0000 +++ b/src/device-x.c Mon Aug 13 04:46:48 2001 +0000 @@ -307,8 +307,9 @@ static char valid_resource_char_p[256]; +/* #### not just char * here; may be fixed in my Mule ws */ static void -validify_resource_component (char *str, size_t len) +validify_resource_component (char *str, Memory_Count len) { for (; len; len--, str++) if (!valid_resource_char_p[(unsigned char) (*str)]) @@ -1582,11 +1583,11 @@ if (!(colon_pos = strchr (str, ':')) || strchr (str, '\n')) invalid: syntax_error ("Invalid resource line", resource_line); - if (strspn (str, - /* Only the following chars are allowed before the colon */ - " \t.*?abcdefghijklmnopqrstuvwxyz" - "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-") - != (size_t) (colon_pos - str)) + if ((int) strspn (str, + /* Only the following chars are allowed before the colon */ + " \t.*?abcdefghijklmnopqrstuvwxyz" + "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-") + != colon_pos - str) goto invalid; if (DEVICE_X_P (d))