Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netccitt Un-obfuscate a small bit of code.
details: https://anonhg.NetBSD.org/src/rev/f92de3d483c8
branches: trunk
changeset: 481488:f92de3d483c8
user: thorpej <thorpej%NetBSD.org@localhost>
date: Tue Feb 01 00:00:22 2000 +0000
description:
Un-obfuscate a small bit of code.
diffstat:
sys/netccitt/llc_input.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (24 lines):
diff -r 9bbfdb7e008d -r f92de3d483c8 sys/netccitt/llc_input.c
--- a/sys/netccitt/llc_input.c Mon Jan 31 23:06:12 2000 +0000
+++ b/sys/netccitt/llc_input.c Tue Feb 01 00:00:22 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: llc_input.c,v 1.7 1998/09/13 16:21:18 christos Exp $ */
+/* $NetBSD: llc_input.c,v 1.8 2000/02/01 00:00:22 thorpej Exp $ */
/*
* Copyright (c) 1990, 1991, 1992
@@ -392,9 +392,11 @@
if (prc == PRC_IFUP || prc == PRC_IFDOWN) {
/* we use either this set ... */
ifa = ifa_ifwithaddr(addr);
- ifp = ifa ? ifa->ifa_ifp : 0;
- if (ifp == 0)
- return 0;
+ if (ifa == NULL)
+ return (0);
+ ifp = ifa->ifa_ifp;
+ if (ifp == NULL)
+ return (0);
sap = ctlinfo->dlcti_lsap;
config = ctlinfo->dlcti_cfg;
Home |
Main Index |
Thread Index |
Old Index