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


  21 /*
  22  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  23  * Use is subject to license terms.
  24  */
  25 
  26 #include <sys/param.h>
  27 #include <sys/modctl.h>
  28 #include <sys/neti.h>
  29 
  30 
  31 /*
  32  * Module linkage information for the kernel.
  33  */
  34 static struct modldrv modlmisc = {
  35         &mod_miscops,               /* drv_modops */
  36         "netinfo module",       /* drv_linkinfo */
  37 };
  38 
  39 static struct modlinkage modlinkage = {
  40         MODREV_1,               /* ml_rev */
  41         &modlmisc,          /* ml_linkage */
  42         NULL
  43 };
  44 
  45 /*
  46  * Module entry points.
  47  */
  48 int
  49 _init(void)
  50 {
  51         int error;
  52 
  53         neti_init();
  54         error = mod_install(&modlinkage);
  55         if (error != 0)
  56                 neti_fini();
  57 
  58         return (error);
  59 }
  60 
  61 
  62 int


  21 /*
  22  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  23  * Use is subject to license terms.
  24  */
  25 
  26 #include <sys/param.h>
  27 #include <sys/modctl.h>
  28 #include <sys/neti.h>
  29 
  30 
  31 /*
  32  * Module linkage information for the kernel.
  33  */
  34 static struct modldrv modlmisc = {
  35         &mod_miscops,               /* drv_modops */
  36         "netinfo module",       /* drv_linkinfo */
  37 };
  38 
  39 static struct modlinkage modlinkage = {
  40         MODREV_1,               /* ml_rev */
  41         { &modlmisc, NULL } /* ml_linkage */

  42 };
  43 
  44 /*
  45  * Module entry points.
  46  */
  47 int
  48 _init(void)
  49 {
  50         int error;
  51 
  52         neti_init();
  53         error = mod_install(&modlinkage);
  54         if (error != 0)
  55                 neti_fini();
  56 
  57         return (error);
  58 }
  59 
  60 
  61 int