]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
logn: tests - don't compare signed with unsigned
authorTom Gundersen <teg@jklm.no>
Thu, 25 May 2017 14:11:04 +0000 (16:11 +0200)
committerTom Gundersen <teg@jklm.no>
Thu, 25 May 2017 15:37:50 +0000 (17:37 +0200)
src/libsystemd/sd-login/test-login.c

index 6889d2f0b40a1b3bce9a802b036a3284281f03e0..6a51ae6a913ba455c2dc6f3d2898ba003404d1a0 100644 (file)
@@ -41,7 +41,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;