diff options
author | Niall O'Higgins <niallo@cvs.openbsd.org> | 2007-01-25 19:40:09 +0000 |
---|---|---|
committer | Niall O'Higgins <niallo@cvs.openbsd.org> | 2007-01-25 19:40:09 +0000 |
commit | 5079d07b031c89abcc90c124236266099bcfc0ee (patch) | |
tree | fcced8c8bb986418a182839cba5704ec61baab8b | |
parent | 9448578837713969e6be8d697163128619e102c5 (diff) |
return 0, not NULL in a function returning int.
ok pyr@
-rw-r--r-- | usr.sbin/hoststated/parse.y | 4 | ||||
-rw-r--r-- | usr.sbin/relayd/parse.y | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/hoststated/parse.y b/usr.sbin/hoststated/parse.y index f07df7725ef..7dc5648ea6f 100644 --- a/usr.sbin/hoststated/parse.y +++ b/usr.sbin/hoststated/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.17 2007/01/24 06:31:09 pyr Exp $ */ +/* $OpenBSD: parse.y,v 1.18 2007/01/25 19:40:08 niallo Exp $ */ /* * Copyright (c) 2006 Pierre-Yves Ritschard <pyr@spootnik.org> @@ -764,7 +764,7 @@ parse_config(struct hoststated *x_conf, const char *filename, int opts) if ((fin = fopen(filename, "r")) == NULL) { warn("%s", filename); - return (NULL); + return (0); } infile = filename; setservent(1); diff --git a/usr.sbin/relayd/parse.y b/usr.sbin/relayd/parse.y index f07df7725ef..7dc5648ea6f 100644 --- a/usr.sbin/relayd/parse.y +++ b/usr.sbin/relayd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.17 2007/01/24 06:31:09 pyr Exp $ */ +/* $OpenBSD: parse.y,v 1.18 2007/01/25 19:40:08 niallo Exp $ */ /* * Copyright (c) 2006 Pierre-Yves Ritschard <pyr@spootnik.org> @@ -764,7 +764,7 @@ parse_config(struct hoststated *x_conf, const char *filename, int opts) if ((fin = fopen(filename, "r")) == NULL) { warn("%s", filename); - return (NULL); + return (0); } infile = filename; setservent(1); |