summaryrefslogtreecommitdiff
path: root/usr.sbin/cron/misc.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2022-05-21 01:21:30 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2022-05-21 01:21:30 +0000
commit7988e233ddef06f8cbbc91fad70f9e9ee0a4da08 (patch)
tree6ea10484bc2fa0f2e842e50a7408d38cb3cb567e /usr.sbin/cron/misc.c
parent91e9c5ecae1b5322785238ca8043f248742993bf (diff)
repair a few more backwards compares that create headaches
ok millert
Diffstat (limited to 'usr.sbin/cron/misc.c')
-rw-r--r--usr.sbin/cron/misc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/cron/misc.c b/usr.sbin/cron/misc.c
index 8e0865d0a85..b825d5b1be7 100644
--- a/usr.sbin/cron/misc.c
+++ b/usr.sbin/cron/misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: misc.c,v 1.71 2015/11/14 13:09:14 millert Exp $ */
+/* $OpenBSD: misc.c,v 1.72 2022/05/21 01:21:29 deraadt Exp $ */
/* Copyright 1988,1990,1993,1994 by Paul Vixie
* Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
@@ -67,7 +67,7 @@ get_string(char *string, int size, FILE *file, char *terms)
{
int ch;
- while (EOF != (ch = get_char(file)) && !strchr(terms, ch)) {
+ while ((ch = get_char(file)) != EOF && !strchr(terms, ch)) {
if (size > 1) {
*string++ = ch;
size--;
@@ -87,7 +87,7 @@ skip_comments(FILE *file)
{
int ch;
- while (EOF != (ch = get_char(file))) {
+ while ((ch = get_char(file)) != EOF) {
/* ch is now the first character of a line.
*/