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

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