Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/dist/am-utils/fsinfo Use INADDR_NONE instead of "(u_long) - 1".
details: https://anonhg.NetBSD.org/src/rev/71aafd727410
branches: trunk
changeset: 526707:71aafd727410
user: simonb <simonb%NetBSD.org@localhost>
date: Thu May 09 02:09:52 2002 +0000
description:
Use INADDR_NONE instead of "(u_long) - 1".
diffstat:
dist/am-utils/fsinfo/fsi_util.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r fcbce88361e5 -r 71aafd727410 dist/am-utils/fsinfo/fsi_util.c
--- a/dist/am-utils/fsinfo/fsi_util.c Thu May 09 02:07:38 2002 +0000
+++ b/dist/am-utils/fsinfo/fsi_util.c Thu May 09 02:09:52 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fsi_util.c,v 1.3 2001/05/13 18:06:59 veego Exp $ */
+/* $NetBSD: fsi_util.c,v 1.4 2002/05/09 02:09:52 simonb Exp $ */
/*
* Copyright (c) 1997-2001 Erez Zadok
@@ -465,7 +465,7 @@
case EF_INADDR:{
ep->e_inaddr.s_addr = inet_addr(v);
- if (ep->e_inaddr.s_addr == (u_long) - 1)
+ if (ep->e_inaddr.s_addr == INADDR_NONE)
yyerror("malformed IP dotted quad: %s", v);
XFREE(v);
}
Home |
Main Index |
Thread Index |
Old Index