From ac5809aebbbb2b5b3f7dc972c5ffdcb136edaeb5 Mon Sep 17 00:00:00 2001 From: Ville Syrjälä Date: Mon, 5 Oct 2020 14:31:03 +0300 Subject: tests: Make .seed unsigned MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit srand() takes an unsigned int, so let's make our seed such. Signed-off-by: Ville Syrjälä Reviewed-by: Juha-Pekka Heikkila --- tests/kms_plane_multiple.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/kms_plane_multiple.c') diff --git a/tests/kms_plane_multiple.c b/tests/kms_plane_multiple.c index 4202117e..93c6ea7d 100644 --- a/tests/kms_plane_multiple.c +++ b/tests/kms_plane_multiple.c @@ -54,8 +54,8 @@ typedef struct { /* Command line parameters. */ struct { int iterations; + unsigned int seed; bool user_seed; - int seed; } opt = { .iterations = 1, }; @@ -409,7 +409,7 @@ static int opt_handler(int option, int option_index, void *input) break; case 's': opt.user_seed = true; - opt.seed = strtol(optarg, NULL, 0); + opt.seed = strtoul(optarg, NULL, 0); break; default: return IGT_OPT_HANDLER_ERROR; -- cgit v1.2.3