Print this page
Reduce lint

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/dlmgmtd/dlmgmt_db.c
          +++ new/usr/src/cmd/dlmgmtd/dlmgmt_db.c
↓ open down ↓ 715 lines elided ↑ open up ↑
 716  716          char                    *curr;
 717  717          char                    attr_name[MAXLINKATTRLEN];
 718  718          size_t                  attr_buf_len = 0;
 719  719          void                    *attr_buf = NULL;
 720  720          boolean_t               rename;
 721  721  
 722  722          curr = buf;
 723  723          len = strlen(buf);
 724  724          attr_name[0] = '\0';
 725  725          for (i = 0; i < len; i++) {
 726      -                rename = B_FALSE;
 727  726                  char            c = buf[i];
 728  727                  boolean_t       match = (c == '=' ||
 729  728                      (c == ',' && !found_type) || c == ';');
 730  729  
      730 +                rename = B_FALSE;
 731  731                  /*
 732  732                   * Move to the next character if there is no match and
 733  733                   * if we have not reached the last character.
 734  734                   */
 735  735                  if (!match && i != len - 1)
 736  736                          continue;
 737  737  
 738  738                  if (match) {
 739  739                          /*
 740  740                           * NUL-terminate the string pointed to by 'curr'.
↓ open down ↓ 865 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX