Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src Build fix (use error when defined).



details:   https://anonhg.NetBSD.org/src/rev/39bc0d358940
branches:  trunk
changeset: 330825:39bc0d358940
user:      htodd <htodd%NetBSD.org@localhost>
date:      Wed Jul 23 05:00:38 2014 +0000

description:
Build fix (use error when defined).

diffstat:

 lib/libnpf/npf.c             |  6 +++---
 usr.sbin/npf/npfctl/npfctl.c |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 98f93319bd31 -r 39bc0d358940 lib/libnpf/npf.c
--- a/lib/libnpf/npf.c  Wed Jul 23 04:09:48 2014 +0000
+++ b/lib/libnpf/npf.c  Wed Jul 23 05:00:38 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: npf.c,v 1.30 2014/07/23 01:25:34 rmind Exp $   */
+/*     $NetBSD: npf.c,v 1.31 2014/07/23 05:00:38 htodd Exp $   */
 
 /*-
  * Copyright (c) 2010-2014 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: npf.c,v 1.30 2014/07/23 01:25:34 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: npf.c,v 1.31 2014/07/23 05:00:38 htodd Exp $");
 
 #include <sys/types.h>
 #include <netinet/in_systm.h>
@@ -227,7 +227,7 @@
        if (!prop_dictionary_externalize_to_file(npf_dict, path)) {
                error = errno;
        }
-       return 0;
+       return error;
 }
 
 nl_config_t *
diff -r 98f93319bd31 -r 39bc0d358940 usr.sbin/npf/npfctl/npfctl.c
--- a/usr.sbin/npf/npfctl/npfctl.c      Wed Jul 23 04:09:48 2014 +0000
+++ b/usr.sbin/npf/npfctl/npfctl.c      Wed Jul 23 05:00:38 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: npfctl.c,v 1.41 2014/07/23 01:25:34 rmind Exp $        */
+/*     $NetBSD: npfctl.c,v 1.42 2014/07/23 05:00:38 htodd Exp $        */
 
 /*-
  * Copyright (c) 2009-2014 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: npfctl.c,v 1.41 2014/07/23 01:25:34 rmind Exp $");
+__RCSID("$NetBSD: npfctl.c,v 1.42 2014/07/23 05:00:38 htodd Exp $");
 
 #include <sys/ioctl.h>
 #include <sys/stat.h>
@@ -493,7 +493,7 @@
        }
        error = npf_config_export(ncf, NPF_DB_PATH);
        npf_config_destroy(ncf);
-       return 0;
+       return error;
 }
 
 static int



Home | Main Index | Thread Index | Old Index