chiark / gitweb /
logn: tests - don't compare signed with unsigned
authorTom Gundersen <teg@jklm.no>
Thu, 25 May 2017 14:11:04 +0000 (16:11 +0200)
committerSven Eden <yamakuzure@gmx.net>
Tue, 25 Jul 2017 07:46:52 +0000 (09:46 +0200)
src/libelogind/sd-login/test-login.c

index 5fd0c131ea00dafea2a18b5eba07b6dc147d0065..589776a7c18a7f5ad2de5c8912763f7f9d76cff7 100644 (file)
@@ -43,7 +43,7 @@ static char* format_uids(char **buf, uid_t* uids, int count) {
                 pos += inc;
         }
 
-        assert_se(pos < size);
+        assert_se(pos < (ssize_t)size);
         (*buf)[pos] = '\0';
 
         return *buf;