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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/ppp/spppasyn/spppasyn_mod.c
          +++ new/usr/src/uts/common/io/ppp/spppasyn/spppasyn_mod.c
↓ open down ↓ 77 lines elided ↑ open up ↑
  78   78  };
  79   79  
  80   80  static struct modlstrmod modlstrmod = {
  81   81          &mod_strmodops,                         /* strmod_modops */
  82   82          (char *)spppasyn_module_description,    /* strmod_linkinfo */
  83   83          &mod_fsw                                /* strmod_fmodsw */
  84   84  };
  85   85  
  86   86  static struct modlinkage modlinkage = {
  87   87          MODREV_1,                       /* ml_rev, has to be MODREV_1 */
  88      -        &modlstrmod,                    /* ml_linkage, NULL-terminated list */
  89      -        NULL                            /*  of linkage structures */
       88 +        { &modlstrmod,  NULL }          /* ml_linkage, NULL-terminated list */
  90   89  };
  91   90  
  92   91  int
  93   92  _init(void)
  94   93  {
  95   94          return (mod_install(&modlinkage));
  96   95  }
  97   96  
  98   97  int
  99   98  _fini(void)
 100   99  {
 101  100          return (mod_remove(&modlinkage));
 102  101  }
 103  102  
 104  103  int
 105  104  _info(struct modinfo *modinfop)
 106  105  {
 107  106          return (mod_info(&modlinkage, modinfop));
 108  107  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX