Home
last modified time | relevance | path

Searched refs:new_bw (Results 1 – 2 of 2) sorted by relevance

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