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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/scsi/adapters/iscsi/isns_client.c
          +++ new/usr/src/uts/common/io/scsi/adapters/iscsi/isns_client.c
↓ open down ↓ 1488 lines elided ↑ open up ↑
1489 1489  
1490 1490  static
1491 1491  void
1492 1492  *isns_open(iscsi_addr_t *isns_server_addr)
1493 1493  {
1494 1494          int rval = 0;
1495 1495          union {
1496 1496                  struct sockaddr sin;
1497 1497                  struct sockaddr_in s_in4;
1498 1498                  struct sockaddr_in6 s_in6;
1499      -        } sa_rsvr = { 0 };
     1499 +        } sa_rsvr = {{0}};
1500 1500          void *so;
1501 1501          struct sockaddr_in6     t_addr;
1502 1502          socklen_t               t_addrlen;
1503 1503  
1504 1504          bzero(&t_addr, sizeof (struct sockaddr_in6));
1505 1505          t_addrlen = sizeof (struct sockaddr_in6);
1506 1506          if (isns_server_addr->a_addr.i_insize == sizeof (struct in_addr)) {
1507 1507                  /* IPv4 */
1508 1508                  sa_rsvr.s_in4.sin_family = AF_INET;
1509 1509                  sa_rsvr.s_in4.sin_port = htons(isns_server_addr->a_port);
↓ open down ↓ 1465 lines elided ↑ open up ↑
2975 2975          isns_async_thread_arg_t *larg;
2976 2976          isns_pdu_t *in_pdu;
2977 2977          size_t bytes_received, in_pdu_size = 0;
2978 2978          uint8_t *lhba_handle;
2979 2979          struct sockaddr_in6      t_addr;
2980 2980          socklen_t               t_addrlen;
2981 2981          union {
2982 2982                  struct sockaddr sin;
2983 2983                  struct sockaddr_in s_in4;
2984 2984                  struct sockaddr_in6 s_in6;
2985      -        } clnt_addr = { 0 };
     2985 +        } clnt_addr = {{0}};
2986 2986          union {
2987 2987                  struct sockaddr_in      soa4;
2988 2988                  struct sockaddr_in6     soa6;
2989 2989          } local_conn_prop;
2990 2990          void *listening_so, *connecting_so;
2991 2991  
2992 2992          larg = (isns_async_thread_arg_t *)arg;
2993 2993          listening_so = larg->listening_so;
2994 2994          lhba_handle = larg->lhba_handle;
2995 2995  
↓ open down ↓ 97 lines elided ↑ open up ↑
3093 3093          }
3094 3094  }
3095 3095  
3096 3096  static
3097 3097  boolean_t
3098 3098  find_listening_addr(iscsi_addr_t *local_addr, void *listening_so)
3099 3099  {
3100 3100          union {
3101 3101                  struct sockaddr_in      soa4;
3102 3102                  struct sockaddr_in6     soa6;
3103      -        } local_conn_prop = { 0 };
     3103 +        } local_conn_prop = {{0}};
3104 3104  
3105 3105          struct sockaddr_in6     t_addr;
3106 3106          socklen_t               t_addrlen;
3107 3107  
3108 3108          if (local_addr == NULL || listening_so == NULL) {
3109 3109                  return (B_FALSE);
3110 3110          }
3111 3111  
3112 3112          bzero(&t_addr, sizeof (struct sockaddr_in6));
3113 3113          t_addrlen = sizeof (struct sockaddr_in6);
↓ open down ↓ 21 lines elided ↑ open up ↑
3135 3135  }
3136 3136  
3137 3137  static
3138 3138  boolean_t
3139 3139  find_local_portal(iscsi_addr_t *isns_server_addr,
3140 3140      iscsi_addr_t **local_addr, void **listening_so)
3141 3141  {
3142 3142          union {
3143 3143                  struct sockaddr_in      soa4;
3144 3144                  struct sockaddr_in6     soa6;
3145      -        } local_conn_prop = { 0 };
     3145 +        } local_conn_prop = {{0}};
3146 3146          union {
3147 3147                  struct sockaddr sin;
3148 3148                  struct sockaddr_in s_in4;
3149 3149                  struct sockaddr_in6 s_in6;
3150      -        } serv_addr = { 0 };
     3150 +        } serv_addr = {{0}};
3151 3151          void *so;
3152 3152          struct sockaddr_in6     t_addr;
3153 3153          socklen_t               t_addrlen;
3154 3154  
3155 3155          if (listening_so == NULL) {
3156 3156                  return (B_FALSE);
3157 3157          }
3158 3158  
3159 3159          if (local_addr != NULL) {
3160 3160                  *local_addr = NULL;
↓ open down ↓ 177 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX