summaryrefslogtreecommitdiff
path: root/tests/kms_plane_multiple.c
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2020-10-05 14:31:03 +0300
committerVille Syrjälä <ville.syrjala@linux.intel.com>2021-02-24 22:21:14 +0200
commitac5809aebbbb2b5b3f7dc972c5ffdcb136edaeb5 (patch)
treee7de9db6b1cf42e371279fb2abc12be6ca06c8a4 /tests/kms_plane_multiple.c
parente05194a5caeddc043741ac4114c6dbba862d3a72 (diff)
tests: Make .seed unsigned
srand() takes an unsigned int, so let's make our seed such. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Diffstat (limited to 'tests/kms_plane_multiple.c')
-rw-r--r--tests/kms_plane_multiple.c4
1 files changed, 2 insertions, 2 deletions
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;