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


  69 /*
  70  * Globals for PPP compression loadable module wrapper
  71  */
  72 extern struct streamtab spppcomp_tab;
  73 extern const char spppcomp_module_description[];
  74 
  75 static struct fmodsw fsw = {
  76         COMP_MOD_NAME,                          /* f_name */
  77         &spppcomp_tab,                              /* f_str */
  78         D_NEW | D_MP | D_MTPERQ                 /* f_flag */
  79 };
  80 
  81 static struct modlstrmod modlstrmod = {
  82         &mod_strmodops,                             /* strmod_modops */
  83         (char *)spppcomp_module_description,    /* strmod_linkinfo */
  84         &fsw                                        /* strmod_fmodsw */
  85 };
  86 
  87 static struct modlinkage modlinkage = {
  88         MODREV_1,                       /* ml_rev, has to be MODREV_1 */
  89         (void *) &modlstrmod,               /* ml_linkage, NULL-terminated list */
  90         NULL                            /*  of linkage structures */
  91 };
  92 
  93 int
  94 _init(void)
  95 {
  96         return (mod_install(&modlinkage));
  97 }
  98 
  99 int
 100 _fini(void)
 101 {
 102         return (mod_remove(&modlinkage));
 103 }
 104 
 105 int
 106 _info(struct modinfo *modinfop)
 107 {
 108         return (mod_info(&modlinkage, modinfop));
 109 }


  69 /*
  70  * Globals for PPP compression loadable module wrapper
  71  */
  72 extern struct streamtab spppcomp_tab;
  73 extern const char spppcomp_module_description[];
  74 
  75 static struct fmodsw fsw = {
  76         COMP_MOD_NAME,                          /* f_name */
  77         &spppcomp_tab,                              /* f_str */
  78         D_NEW | D_MP | D_MTPERQ                 /* f_flag */
  79 };
  80 
  81 static struct modlstrmod modlstrmod = {
  82         &mod_strmodops,                             /* strmod_modops */
  83         (char *)spppcomp_module_description,    /* strmod_linkinfo */
  84         &fsw                                        /* strmod_fmodsw */
  85 };
  86 
  87 static struct modlinkage modlinkage = {
  88         MODREV_1,                       /* ml_rev, has to be MODREV_1 */
  89         { (void *) &modlstrmod,     NULL }  /* ml_linkage, NULL-terminated list */

  90 };
  91 
  92 int
  93 _init(void)
  94 {
  95         return (mod_install(&modlinkage));
  96 }
  97 
  98 int
  99 _fini(void)
 100 {
 101         return (mod_remove(&modlinkage));
 102 }
 103 
 104 int
 105 _info(struct modinfo *modinfop)
 106 {
 107         return (mod_info(&modlinkage, modinfop));
 108 }