diff options
author | Alexander von Gernler <grunk@cvs.openbsd.org> | 2009-10-01 11:37:34 +0000 |
---|---|---|
committer | Alexander von Gernler <grunk@cvs.openbsd.org> | 2009-10-01 11:37:34 +0000 |
commit | ccc4524d654aecc16d17e6bac978318ec8ea45aa (patch) | |
tree | 17ef5d32e08a2e403012eac039a2ad1979f88e2a | |
parent | 0c032b085858f39700b24aa1c7774284fa52cbba (diff) |
fix a cast
ok djm@ markus@
-rw-r--r-- | usr.bin/ssh/dh.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/dh.c b/usr.bin/ssh/dh.c index 7bc3171009b..2f3bacd9ea3 100644 --- a/usr.bin/ssh/dh.c +++ b/usr.bin/ssh/dh.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dh.c,v 1.47 2008/06/26 09:19:39 djm Exp $ */ +/* $OpenBSD: dh.c,v 1.48 2009/10/01 11:37:33 grunk Exp $ */ /* * Copyright (c) 2000 Niels Provos. All rights reserved. * @@ -80,7 +80,7 @@ parse_prime(int linenum, char *line, struct dhgroup *dhg) goto fail; strsize = strsep(&cp, " "); /* size */ if (cp == NULL || *strsize == '\0' || - (dhg->size = (u_int)strtonum(strsize, 0, 64*1024, &errstr)) == 0 || + (dhg->size = (int)strtonum(strsize, 0, 64*1024, &errstr)) == 0 || errstr) goto fail; /* The whole group is one bit larger */ |