summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/dev/uperf.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/sparc64/dev/uperf.c')
-rw-r--r--sys/arch/sparc64/dev/uperf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/sparc64/dev/uperf.c b/sys/arch/sparc64/dev/uperf.c
index 5989ea93105..5a079862d61 100644
--- a/sys/arch/sparc64/dev/uperf.c
+++ b/sys/arch/sparc64/dev/uperf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uperf.c,v 1.5 2003/06/02 20:02:49 jason Exp $ */
+/* $OpenBSD: uperf.c,v 1.6 2011/04/07 15:30:16 miod Exp $ */
/*
* Copyright (c) 2002 Jason L. Wright (jason@thought.net)
@@ -146,7 +146,7 @@ uperf_findbyval(usc, cnt, uval, rval)
{
struct uperf_src *srcs = usc->usc_srcs;
- if (srcs->us_src == NULL)
+ if (srcs->us_src == 0)
return (EINVAL);
while (srcs->us_src != -1) {
@@ -191,7 +191,7 @@ uperf_findbysrc(usc, cnt, src, rval)
{
struct uperf_src *srcs = usc->usc_srcs;
- if (srcs->us_src == NULL)
+ if (srcs->us_src == 0)
return (EINVAL);
while (srcs->us_src != -1) {