Print this page
5218 posix definition of NULL
correct unistd.h and iso/stddef_iso.h
update gate source affected

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/picl/plugins/common/piclevent/picl_slm.c
          +++ new/usr/src/cmd/picl/plugins/common/piclevent/picl_slm.c
↓ open down ↓ 336 lines elided ↑ open up ↑
 337  337  
 338  338          /*
 339  339           * Make a copy to expand attribute list
 340  340           */
 341  341          dupev = sysevent_dup(ev);
 342  342          if (dupev == NULL) {
 343  343                  free(ename);
 344  344                  return (EAGAIN);
 345  345          }
 346  346  
 347      -        if (nvlist_alloc(&nvl, NV_UNIQUE_NAME_TYPE, NULL)) {
      347 +        if (nvlist_alloc(&nvl, NV_UNIQUE_NAME_TYPE, 0)) {
 348  348                  free(ename);
 349  349                  sysevent_free(dupev);
 350  350                  return (EAGAIN);
 351  351          }
 352  352  
 353  353          if (strcmp(ec, EC_DEVFS) == 0) {
 354  354                  rval = piclslm_add_ec_devfs_args(nvl, dupev);
 355  355          } else if (strcmp(ec, EC_DR) == 0) {
 356  356                  if (strcmp(esc, ESC_DR_REQ) == 0) {
 357  357                          rval = piclslm_add_ec_dr_req_args(nvl, dupev);
↓ open down ↓ 6 lines elided ↑ open up ↑
 364  364                  free(ename);
 365  365                  nvlist_free(nvl);
 366  366                  sysevent_free(dupev);
 367  367                  return ((rval == EAGAIN) ? EAGAIN : 0);
 368  368          }
 369  369  
 370  370          pack_buf = NULL;
 371  371          if (nvlist_add_string(nvl, PICLEVENTARG_EVENT_NAME, ename) ||
 372  372              nvlist_add_string(nvl, PICLEVENTARG_DATA_TYPE,
 373  373              PICLEVENTARG_PICLEVENT_DATA) ||
 374      -            nvlist_pack(nvl, &pack_buf, &nvl_size, NV_ENCODE_NATIVE, NULL)) {
      374 +            nvlist_pack(nvl, &pack_buf, &nvl_size, NV_ENCODE_NATIVE, 0)) {
 375  375                  free(ename);
 376  376                  nvlist_free(nvl);
 377  377                  sysevent_free(dupev);
 378  378                  return (EAGAIN);
 379  379          }
 380  380  
 381  381          /*
 382  382           * Add nvlist_t to queue
 383  383           */
 384  384          (void) mutex_lock(&nvq_lock);
↓ open down ↓ 10 lines elided ↑ open up ↑
 395  395  struct slm_mod_ops *
 396  396  slm_init(void)
 397  397  {
 398  398          cleanup = 0;
 399  399  
 400  400          init_queue();
 401  401  
 402  402          (void) mutex_init(&nvq_lock, USYNC_THREAD, NULL);
 403  403          (void) cond_init(&nvq_cv, USYNC_THREAD, NULL);
 404  404  
 405      -        if (thr_create(NULL, NULL, piclslm_deliver_thr,
      405 +        if (thr_create(NULL, 0, piclslm_deliver_thr,
 406  406              NULL, THR_BOUND, &piclslm_deliver_thr_id) != 0) {
 407  407                  (void) mutex_destroy(&nvq_lock);
 408  408                  (void) cond_destroy(&nvq_cv);
 409  409                  return (NULL);
 410  410          }
 411  411          return (&piclslm_mod_ops);
 412  412  }
 413  413  
 414  414  void
 415  415  slm_fini(void)
↓ open down ↓ 19 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX