summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJérémie Courrèges-Anglas <jca@wxcvbn.org>2014-01-03 01:53:13 +0100
committerJérémie Courrèges-Anglas <jca@wxcvbn.org>2014-01-03 23:06:08 +0100
commitfa69587598d704de171736f1ba1fb53a9975a3ff (patch)
tree70143de843465bdaa587eb0a8a98cd225e725a9f /src
parent7125d41a6703e1bb3e4ae012c8ce04a8bad30de8 (diff)
downloadratpoison-fa69587598d704de171736f1ba1fb53a9975a3ff.zip
In str_comp() make len and i size_t.
Diffstat (limited to 'src')
-rw-r--r--src/main.c4
-rw-r--r--src/ratpoison.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 06f0ceb..4dc84cf 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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);