Searched defs:new_bw (Results 1 - 2 of 2) sorted by relevance

/illumos-gate/usr/src/lib/libcommputil/common/
H A Dsdp_parse.c528 sdp_bandwidth_t *new_bw = NULL; local
535 new_bw = calloc(1, sizeof (sdp_bandwidth_t));
536 if (new_bw == NULL) {
545 COMMP_COPY_STR(new_bw->b_type, begin, current - begin);
546 if (new_bw->b_type == NULL) {
547 sdp_free_bandwidth(new_bw);
557 if (commp_strtoull(begin, current, &new_bw->b_value) != 0)
560 *bw = new_bw;
565 tmp->b_next = new_bw;
570 sdp_free_bandwidth(new_bw);
[all...]
H A Dsdp.c459 sdp_bandwidth_t *new_bw; local
465 new_bw = calloc(1, sizeof (sdp_bandwidth_t));
466 if (new_bw == NULL)
468 new_bw->b_value = value;
469 if ((ret = commp_add_str(&new_bw->b_type, type, strlen(type))) != 0) {
470 free(new_bw);
474 *bw = new_bw;
479 tmp->b_next = new_bw;

Completed in 86 milliseconds