diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2016-08-16 04:44:39 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2016-08-16 04:44:39 +0000 |
commit | e155fcc81fc1dd488e1a7bc75b18271333f36739 (patch) | |
tree | 23afb85ad7fe7bc4696612be5381aa6f881fd630 /libexec | |
parent | 2507a07c45cb8db61ba1332d556390dca3c13ee5 (diff) |
remove unneeded casts
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/login_passwd/login.c | 4 | ||||
-rw-r--r-- | libexec/login_reject/login_reject.c | 4 | ||||
-rw-r--r-- | libexec/login_yubikey/login_yubikey.c | 5 |
3 files changed, 6 insertions, 7 deletions
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 <daniel@benzedrine.cx> @@ -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) |