summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2018-10-12 15:52:02 +0200
committerGravatar Nikias Bassen2018-10-12 15:52:02 +0200
commitd942a73b6fca6388ff8085e8f58790bf15b962a1 (patch)
tree26ea4a3e1b6b4b5be98df9e5f83de6d69081d82e /src
parent21095adeffe6d053c29019f335ceb5c339a15e8b (diff)
downloadlibusbmuxd-d942a73b6fca6388ff8085e8f58790bf15b962a1.tar.gz
libusbmuxd-d942a73b6fca6388ff8085e8f58790bf15b962a1.tar.bz2
Silence compiler warning about signed vs. unsigned compare
Diffstat (limited to 'src')
-rw-r--r--src/libusbmuxd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libusbmuxd.c b/src/libusbmuxd.c
index 712c362..379a948 100644
--- a/src/libusbmuxd.c
+++ b/src/libusbmuxd.c
@@ -535,11 +535,11 @@ static void get_prog_name()
size_t r = fread(tmpbuf, 1, 512, f);
if (r > 0) {
char *p = tmpbuf;
- while ((p-tmpbuf < r) && (*p != '(') && (*p != '\0')) p++;
+ while ((p-tmpbuf < (ssize_t)r) && (*p != '(') && (*p != '\0')) p++;
if (*p == '(') {
p++;
char *pname = p;
- while ((p-tmpbuf < r) && (*p != ')') && (*p != '\0')) p++;
+ while ((p-tmpbuf < (ssize_t)r) && (*p != ')') && (*p != '\0')) p++;
if (*p == ')') {
*p = '\0';
prog_name = strdup(pname);