diff options
author | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2014-01-03 01:53:13 +0100 |
---|---|---|
committer | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2014-01-03 23:06:08 +0100 |
commit | fa69587598d704de171736f1ba1fb53a9975a3ff (patch) | |
tree | 70143de843465bdaa587eb0a8a98cd225e725a9f /src | |
parent | 7125d41a6703e1bb3e4ae012c8ce04a8bad30de8 (diff) | |
download | ratpoison-fa69587598d704de171736f1ba1fb53a9975a3ff.zip |
In str_comp() make len and i size_t.
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 4 | ||||
-rw-r--r-- | src/ratpoison.h | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -206,9 +206,9 @@ strtok_ws (char *s) /* A case insensitive strncmp. */ int -str_comp (char *s1, char *s2, int len) +str_comp (char *s1, char *s2, size_t len) { - int i; + size_t i; for (i = 0; i < len; i++) if (toupper ((unsigned char)s1[i]) != toupper ((unsigned char)s2[i])) diff --git a/src/ratpoison.h b/src/ratpoison.h index 5efc15c..31c5512 100644 --- a/src/ratpoison.h +++ b/src/ratpoison.h @@ -93,7 +93,7 @@ void *xrealloc (void *ptr, size_t size); char *xstrdup (const char *s); char *xsprintf (char *fmt, ...); char *xvsprintf (char *fmt, va_list ap); -int str_comp (char *s1, char *s2, int len); +int str_comp (char *s1, char *s2, size_t len); char *strtok_ws (char *s); void check_child_procs (void); void chld_handler (int signum); |