Print this page
7127 remove -Wno-missing-braces from Makefile.uts
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/common/rpc/sec/secmod.c
+++ new/usr/src/uts/common/rpc/sec/secmod.c
1 1 /*
2 2 * CDDL HEADER START
3 3 *
4 4 * The contents of this file are subject to the terms of the
5 5 * Common Development and Distribution License, Version 1.0 only
6 6 * (the "License"). You may not use this file except in compliance
7 7 * with the License.
8 8 *
9 9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 10 * or http://www.opensolaris.org/os/licensing.
11 11 * See the License for the specific language governing permissions
12 12 * and limitations under the License.
13 13 *
14 14 * When distributing Covered Code, include this CDDL HEADER in each
15 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 16 * If applicable, add the following below this CDDL HEADER, with the
17 17 * fields enclosed by brackets "[]" replaced with your own identifying
18 18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 19 *
20 20 * CDDL HEADER END
21 21 */
22 22 /*
23 23 * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
24 24 * Use is subject to license terms.
25 25 * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
26 26 */
27 27
28 28 #include <sys/types.h>
29 29 #include <sys/modctl.h>
30 30 #include <sys/errno.h>
31 31
↓ open down ↓ |
31 lines elided |
↑ open up ↑ |
32 32 /*
33 33 * Module linkage information for the kernel.
34 34 */
35 35
36 36 static struct modlmisc modlmisc = {
37 37 &mod_miscops, "kernel RPC security module."
38 38 };
39 39
40 40 static struct modlinkage modlinkage = {
41 41 MODREV_1,
42 - (void *)&modlmisc,
43 - NULL
42 + { (void *)&modlmisc, NULL }
44 43 };
45 44
46 45 extern void sec_subrinit();
47 46 extern void sec_subrfini();
48 47 extern void svcauthdes_init();
49 48 extern void svcauthdes_fini();
50 49
51 50 int
52 51 _init()
53 52 {
54 53 int retval = 0;
55 54
56 55 sec_subrinit();
57 56 svcauthdes_init();
58 57
59 58 if ((retval = mod_install(&modlinkage)) != 0) {
60 59 /*
61 60 * Failed to load module, cleanup previous
62 61 * initialization work.
63 62 */
64 63 sec_subrfini();
65 64 svcauthdes_fini();
66 65 }
67 66
68 67 return (retval);
69 68 }
70 69
71 70 int
72 71 _fini()
73 72 {
74 73 return (EBUSY);
75 74 }
76 75
77 76 int
78 77 _info(struct modinfo *modinfop)
79 78 {
80 79 return (mod_info(&modlinkage, modinfop));
81 80 }
↓ open down ↓ |
28 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX