summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-01-12 13:52:08 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-01-12 14:13:48 -0800
commit3e60a26559221e561770710a8c4ed0b8ebc31afb (patch)
tree0e314e6edbff91f867776335e97dcdc6bb4fc26c
parentf7b55bdf674fc790e879a2e25ef83925dd8379d6 (diff)
Quiet some clang warnings about implicit int <-> size_t conversions
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--xwininfo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xwininfo.c b/xwininfo.c
index bb290b7..39ae6ea 100644
--- a/xwininfo.c
+++ b/xwininfo.c
@@ -1826,7 +1826,7 @@ get_net_wm_name (xcb_connection_t *gnwn_dpy, xcb_window_t win)
#define UTF8_SHORT_TAIL 3
#define UTF8_LONG_TAIL 4
static int
-is_valid_utf8 (const char *string, int len)
+is_valid_utf8 (const char *string, size_t len)
{
unsigned long codepoint;
int rem, i;
@@ -1947,7 +1947,7 @@ get_friendly_name (const char *string, const char *prefix)
const char *name_start = string;
char *lowered_name, *n;
Bool first = True;
- int prefix_len = strlen (prefix);
+ size_t prefix_len = strlen (prefix);
if (strncmp (name_start, prefix, prefix_len) == 0) {
name_start += prefix_len;