=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/servconf.c,v retrieving revision 1.393 retrieving revision 1.394 diff -u -r1.393 -r1.394 --- src/usr.bin/ssh/servconf.c 2023/05/24 23:01:06 1.393 +++ src/usr.bin/ssh/servconf.c 2023/06/05 13:24:36 1.394 @@ -1,5 +1,5 @@ -/* $OpenBSD: servconf.c,v 1.393 2023/05/24 23:01:06 djm Exp $ */ +/* $OpenBSD: servconf.c,v 1.394 2023/06/05 13:24:36 millert Exp $ */ /* * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland * All rights reserved @@ -908,7 +908,7 @@ /* Parse a ChannelTimeout clause "pattern=interval" */ static int -parse_timeout(const char *s, char **typep, u_int *secsp) +parse_timeout(const char *s, char **typep, int *secsp) { char *cp, *sdup; int secs; @@ -934,7 +934,7 @@ if (typep != NULL) *typep = xstrdup(sdup); if (secsp != NULL) - *secsp = (u_int)secs; + *secsp = secs; free(sdup); return 0; } @@ -942,7 +942,8 @@ void process_channel_timeouts(struct ssh *ssh, ServerOptions *options) { - u_int i, secs; + int secs; + u_int i; char *type; debug3_f("setting %u timeouts", options->num_channel_timeouts);