Source-Changes-HG archive

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

[src/pgoyette-compat]: src/sys/compat/common Make if_43_{init, fini} return an...



details:   https://anonhg.NetBSD.org/src/rev/b356ddeb40fa
branches:  pgoyette-compat
changeset: 830855:b356ddeb40fa
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Wed Oct 03 21:27:14 2018 +0000

description:
Make if_43_{init,fini} return an int, for consistency with all the
related *_{init,fini} routines.

diffstat:

 sys/compat/common/if_43.c |  10 ++++++----
 sys/compat/common/if_43.h |   6 +++---
 2 files changed, 9 insertions(+), 7 deletions(-)

diffs (60 lines):

diff -r 94b517380204 -r b356ddeb40fa sys/compat/common/if_43.c
--- a/sys/compat/common/if_43.c Wed Oct 03 11:59:21 2018 +0000
+++ b/sys/compat/common/if_43.c Wed Oct 03 21:27:14 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_43.c,v 1.14.2.7 2018/09/30 01:45:49 pgoyette Exp $  */
+/*     $NetBSD: if_43.c,v 1.14.2.8 2018/10/03 21:27:14 pgoyette Exp $  */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1990, 1993
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_43.c,v 1.14.2.7 2018/09/30 01:45:49 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_43.c,v 1.14.2.8 2018/10/03 21:27:14 pgoyette Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_compat_netbsd.h"
@@ -301,17 +301,19 @@
 MODULE_SET_HOOK2(if_43_hook, "if_43", do_compat_cvtcmd, compat_ifioctl);
 MODULE_UNSET_HOOK2(if_43_hook);
 
-void
+int
 if_43_init(void)
 {
 
        if_43_hook_set();
+       return 0;
 }
 
-void
+int
 if_43_fini(void)
 {
 
        if_43_hook_unset();
+       return 0;
 }
 #endif /* defined(COMPAT_43) */
diff -r 94b517380204 -r b356ddeb40fa sys/compat/common/if_43.h
--- a/sys/compat/common/if_43.h Wed Oct 03 11:59:21 2018 +0000
+++ b/sys/compat/common/if_43.h Wed Oct 03 21:27:14 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_43.h,v 1.1 2016/11/05 23:30:22 pgoyette Exp $       */
+/*     $NetBSD: if_43.h,v 1.1.20.1 2018/10/03 21:27:14 pgoyette Exp $  */
 
 /*-
  * Copyright (c) 2016 The NetBSD Foundation, Inc.
@@ -37,8 +37,8 @@
 extern int (*vec_compat_ifioctl)(struct socket *, u_long, u_long, 
     void *, struct lwp *);
 
-void if_43_init(void);
-void if_43_fini(void);
+int if_43_init(void);
+int if_43_fini(void);
 #endif
 
 #endif /* !_COMPAT_IF_43_H_ */



Home | Main Index | Thread Index | Old Index