From 228cff3439a5bf39f999c323247925eea35e723b Mon Sep 17 00:00:00 2001 From: dtucker Date: Thu, 6 Jul 2023 22:17:59 +0000 Subject: [PATCH] minleft and maxsign are u_int so cast appropriately. Prompted by github PR#410, ok deraadt. --- usr.bin/ssh/ssh-add.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.bin/ssh/ssh-add.c b/usr.bin/ssh/ssh-add.c index 6af24882e6c..ab92a540fe9 100644 --- a/usr.bin/ssh/ssh-add.c +++ b/usr.bin/ssh/ssh-add.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh-add.c,v 1.167 2023/03/08 00:05:58 djm Exp $ */ +/* $OpenBSD: ssh-add.c,v 1.168 2023/07/06 22:17:59 dtucker Exp $ */ /* * Author: Tatu Ylonen * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland @@ -856,7 +856,7 @@ main(int argc, char **argv) confirm = 1; break; case 'm': - minleft = (int)strtonum(optarg, 1, UINT_MAX, NULL); + minleft = (u_int)strtonum(optarg, 1, UINT_MAX, NULL); if (minleft == 0) { usage(); ret = 1; @@ -864,7 +864,7 @@ main(int argc, char **argv) } break; case 'M': - maxsign = (int)strtonum(optarg, 1, UINT_MAX, NULL); + maxsign = (u_int)strtonum(optarg, 1, UINT_MAX, NULL); if (maxsign == 0) { usage(); ret = 1; -- 2.20.1