Print this page
7127  remove -Wno-missing-braces from Makefile.uts


  20  * CDDL HEADER END
  21  */
  22 /*
  23  * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  24  * Use is subject to license terms.
  25  * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
  26  */
  27 
  28 #include <sys/types.h>
  29 #include <sys/modctl.h>
  30 #include <sys/errno.h>
  31 
  32 /*
  33  * Module linkage information for the kernel.
  34  */
  35 static struct modlmisc modlmisc = {
  36         &mod_miscops, "kernel RPCSEC_GSS security service."
  37 };
  38 
  39 static struct modlinkage modlinkage = {
  40         MODREV_1, &modlmisc, NULL
  41 };
  42 
  43 int
  44 _init()
  45 {
  46         int retval = 0;
  47         extern void gssauth_init();
  48         extern void svc_gss_init();
  49         extern void gssauth_fini();
  50         extern void svc_gss_fini();
  51 
  52         gssauth_init();
  53         svc_gss_init();
  54 
  55         if ((retval = mod_install(&modlinkage)) != 0) {
  56                 gssauth_fini();
  57                 svc_gss_fini();
  58         }
  59 
  60         return (retval);


  20  * CDDL HEADER END
  21  */
  22 /*
  23  * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  24  * Use is subject to license terms.
  25  * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
  26  */
  27 
  28 #include <sys/types.h>
  29 #include <sys/modctl.h>
  30 #include <sys/errno.h>
  31 
  32 /*
  33  * Module linkage information for the kernel.
  34  */
  35 static struct modlmisc modlmisc = {
  36         &mod_miscops, "kernel RPCSEC_GSS security service."
  37 };
  38 
  39 static struct modlinkage modlinkage = {
  40         MODREV_1, { &modlmisc, NULL }
  41 };
  42 
  43 int
  44 _init()
  45 {
  46         int retval = 0;
  47         extern void gssauth_init();
  48         extern void svc_gss_init();
  49         extern void gssauth_fini();
  50         extern void svc_gss_fini();
  51 
  52         gssauth_init();
  53         svc_gss_init();
  54 
  55         if ((retval = mod_install(&modlinkage)) != 0) {
  56                 gssauth_fini();
  57                 svc_gss_fini();
  58         }
  59 
  60         return (retval);