Print this page
Reduce lint

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/inotify.c
          +++ new/usr/src/uts/common/io/inotify.c
↓ open down ↓ 497 lines elided ↑ open up ↑
 498  498                  len = 0;
 499  499          }
 500  500  
 501  501          event = kmem_zalloc(sizeof (inotify_kevent_t) + len, KM_SLEEP);
 502  502          event->ine_event.wd = wd;
 503  503          event->ine_event.mask = (uint32_t)mask;
 504  504          event->ine_event.cookie = cookie;
 505  505          event->ine_event.len = len;
 506  506  
 507  507          if (name != NULL)
 508      -                strcpy(event->ine_event.name, name);
      508 +                (void) strcpy(event->ine_event.name, name);
 509  509  
 510  510          if (tail != NULL) {
 511  511                  tail->ine_next = event;
 512  512          } else {
 513  513                  VERIFY(state->ins_head == NULL);
 514  514                  state->ins_head = event;
 515  515                  cv_broadcast(&state->ins_cv);
 516  516          }
 517  517  
 518  518          state->ins_tail = event;
↓ open down ↓ 986 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX