Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/join join.c: explicitly convert -1 to u_long in orde...
details: https://anonhg.NetBSD.org/src/rev/29dd0f5dcb69
branches: trunk
changeset: 953719:29dd0f5dcb69
user: cheusov <cheusov%NetBSD.org@localhost>
date: Thu Mar 18 19:41:54 2021 +0000
description:
join.c: explicitly convert -1 to u_long in order to fix compiler warnings
diffstat:
usr.bin/join/join.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 578e88842cd5 -r 29dd0f5dcb69 usr.bin/join/join.c
--- a/usr.bin/join/join.c Thu Mar 18 19:34:05 2021 +0000
+++ b/usr.bin/join/join.c Thu Mar 18 19:41:54 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: join.c,v 1.31 2011/09/04 20:27:52 joerg Exp $ */
+/* $NetBSD: join.c,v 1.32 2021/03/18 19:41:54 cheusov Exp $ */
/*-
* Copyright (c) 1991 The Regents of the University of California.
@@ -47,7 +47,7 @@
#if 0
static char sccsid[] = "from: @(#)join.c 5.1 (Berkeley) 11/18/91";
#else
-__RCSID("$NetBSD: join.c,v 1.31 2011/09/04 20:27:52 joerg Exp $");
+__RCSID("$NetBSD: join.c,v 1.32 2021/03/18 19:41:54 cheusov Exp $");
#endif
#endif /* not lint */
@@ -89,8 +89,8 @@
u_long setalloc; /* set allocated count */
} INPUT;
-static INPUT input1 = { NULL, 0, 0, 1, NULL, -1, 0, 0, },
- input2 = { NULL, 0, 0, 2, NULL, -1, 0, 0, };
+static INPUT input1 = { NULL, 0, 0, 1, NULL, (u_long)-1, 0, 0, };
+static INPUT input2 = { NULL, 0, 0, 2, NULL, (u_long)-1, 0, 0, };
typedef struct {
u_long fileno; /* file number */
Home |
Main Index |
Thread Index |
Old Index