Prepare for '-Wsign-compare'
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 8 Mar 2022 23:26:06 +0000 (18:26 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 15 Mar 2022 21:00:39 +0000 (17:00 -0400)
In preparation for '-Wextra'

Change-Id: I9a3b91009b2b44c0aeacfb37fa2b8b901be79992
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/regression/tools/filtering/gen-ust-events.c
tests/utils/testapp/gen-kernel-test-events/gen-kernel-test-events.c

index 3bd4ee83270f7f3db752711c1f04059785a30191..d4f8a57bd8650355163eb59ce717caad955ab4b6 100644 (file)
@@ -28,7 +28,7 @@ int main(int argc, char **argv)
        double dbl = 2.0;
        float flt = 2222.0;
        /* Generate 30 events. */
-       unsigned int nr_iter = 100;
+       int nr_iter = 100;
        useconds_t nr_usec = 0;
 
        if (argc >= 2) {
index 6b16cd5e6c31b8f68f8027322d79c1b385de9f3f..5e488f9829df05bac1b387805f36ee11bb733f82 100644 (file)
@@ -60,7 +60,7 @@ int main(int argc, char **argv)
        }
 
        len = write(fd, nr_events_str, strlen(nr_events_str) + 1);
-       if (len != strlen(nr_events_str) + 1) {
+       if (len != (ssize_t) strlen(nr_events_str) + 1) {
                perror("write");
                ret = -1;
        } else {
This page took 0.026434 seconds and 4 git commands to generate.