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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/inet/udp/udp_stats.c
          +++ new/usr/src/uts/common/inet/udp/udp_stats.c
↓ open down ↓ 506 lines elided ↑ open up ↑
 507  507          netstack_rele(ns);
 508  508          return (0);
 509  509  }
 510  510  
 511  511  void *
 512  512  udp_kstat_init(netstackid_t stackid)
 513  513  {
 514  514          kstat_t *ksp;
 515  515  
 516  516          udp_named_kstat_t template = {
 517      -                { "inDatagrams",        KSTAT_DATA_UINT64, 0 },
 518      -                { "inErrors",           KSTAT_DATA_UINT32, 0 },
 519      -                { "outDatagrams",       KSTAT_DATA_UINT64, 0 },
 520      -                { "entrySize",          KSTAT_DATA_INT32, 0 },
 521      -                { "entry6Size",         KSTAT_DATA_INT32, 0 },
 522      -                { "outErrors",          KSTAT_DATA_UINT32, 0 },
      517 +                { "inDatagrams",        KSTAT_DATA_UINT64, {{0}} },
      518 +                { "inErrors",           KSTAT_DATA_UINT32, {{0}} },
      519 +                { "outDatagrams",       KSTAT_DATA_UINT64, {{0}} },
      520 +                { "entrySize",          KSTAT_DATA_INT32, {{0}} },
      521 +                { "entry6Size",         KSTAT_DATA_INT32, {{0}} },
      522 +                { "outErrors",          KSTAT_DATA_UINT32, {{0}} },
 523  523          };
 524  524  
 525  525          ksp = kstat_create_netstack(UDP_MOD_NAME, 0, UDP_MOD_NAME, "mib2",
 526  526              KSTAT_TYPE_NAMED, NUM_OF_FIELDS(udp_named_kstat_t), 0, stackid);
 527  527  
 528  528          if (ksp == NULL)
 529  529                  return (NULL);
 530  530  
 531  531          template.entrySize.value.ui32 = sizeof (mib2_udpEntry_t);
 532  532          template.entry6Size.value.ui32 = sizeof (mib2_udp6Entry_t);
↓ open down ↓ 57 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX