From: tedu Date: Tue, 16 Aug 2016 04:44:38 +0000 (+0000) Subject: remove unneeded casts X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=23ae912875e7c0632591ed053351435bc0bfcaa9;p=openbsd remove unneeded casts --- diff --git a/libexec/login_passwd/login.c b/libexec/login_passwd/login.c index 8d208e03381..88f8089b2b3 100644 --- a/libexec/login_passwd/login.c +++ b/libexec/login_passwd/login.c @@ -1,4 +1,4 @@ -/* $OpenBSD: login.c,v 1.12 2015/10/05 17:31:17 millert Exp $ */ +/* $OpenBSD: login.c,v 1.13 2016/08/16 04:44:38 tedu Exp $ */ /*- * Copyright (c) 1995 Berkeley Software Design, Inc. All rights reserved. @@ -120,7 +120,7 @@ main(int argc, char **argv) mode = 0; count = -1; while (++count < sizeof(response) && - read(3, &response[count], (size_t)1) == (ssize_t)1) { + read(3, &response[count], 1) == 1) { if (response[count] == '\0' && ++mode == 2) break; if (response[count] == '\0' && mode == 1) { diff --git a/libexec/login_reject/login_reject.c b/libexec/login_reject/login_reject.c index 8af486e107a..fc082b8839c 100644 --- a/libexec/login_reject/login_reject.c +++ b/libexec/login_reject/login_reject.c @@ -1,4 +1,4 @@ -/* $OpenBSD: login_reject.c,v 1.14 2016/04/26 20:30:00 mestre Exp $ */ +/* $OpenBSD: login_reject.c,v 1.15 2016/08/16 04:44:38 tedu Exp $ */ /*- * Copyright (c) 1995 Berkeley Software Design, Inc. All rights reserved. @@ -114,7 +114,7 @@ main(int argc, char *argv[]) if (mode == 2) { mode = 0; c = -1; - while (read(3, passbuf, (size_t)1) == 1) { + while (read(3, passbuf, 1) == 1) { if (passbuf[0] == '\0' && ++mode == 2) break; } diff --git a/libexec/login_yubikey/login_yubikey.c b/libexec/login_yubikey/login_yubikey.c index 00ca06f3b07..58d058f7d14 100644 --- a/libexec/login_yubikey/login_yubikey.c +++ b/libexec/login_yubikey/login_yubikey.c @@ -1,4 +1,4 @@ -/* $OpenBSD: login_yubikey.c,v 1.14 2016/04/24 18:52:52 benno Exp $ */ +/* $OpenBSD: login_yubikey.c,v 1.15 2016/08/16 04:44:38 tedu Exp $ */ /* * Copyright (c) 2010 Daniel Hartmeier @@ -140,8 +140,7 @@ main(int argc, char *argv[]) mode = 0; count = -1; while (++count < sizeof(response) && - read(3, &response[count], (size_t)1) == - (ssize_t)1) { + read(3, &response[count], 1) == 1) { if (response[count] == '\0' && ++mode == 2) break; if (response[count] == '\0' && mode == 1)