-/* $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.
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) {
-/* $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.
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;
}
-/* $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>
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)