Home
last modified time | relevance | path

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

/illumos-gate/usr/src/lib/libcommputil/common/
H A Dsdp_parse.c526 sdp_bandwidth_t *new_bw = NULL; in sdp_parse_bandwidth() local
533 new_bw = calloc(1, sizeof (sdp_bandwidth_t)); in sdp_parse_bandwidth()
534 if (new_bw == NULL) { in sdp_parse_bandwidth()
543 COMMP_COPY_STR(new_bw->b_type, begin, current - begin); in sdp_parse_bandwidth()
544 if (new_bw->b_type == NULL) { in sdp_parse_bandwidth()
545 sdp_free_bandwidth(new_bw); in sdp_parse_bandwidth()
555 if (commp_strtoull(begin, current, &new_bw->b_value) != 0) in sdp_parse_bandwidth()
558 *bw = new_bw; in sdp_parse_bandwidth()
563 tmp->b_next = new_bw; in sdp_parse_bandwidth()
568 sdp_free_bandwidth(new_bw); in sdp_parse_bandwidth()
H A Dsdp.c457 sdp_bandwidth_t *new_bw; in sdp_add_bandwidth() local
463 new_bw = calloc(1, sizeof (sdp_bandwidth_t)); in sdp_add_bandwidth()
464 if (new_bw == NULL) in sdp_add_bandwidth()
466 new_bw->b_value = value; in sdp_add_bandwidth()
467 if ((ret = commp_add_str(&new_bw->b_type, type, strlen(type))) != 0) { in sdp_add_bandwidth()
468 free(new_bw); in sdp_add_bandwidth()
472 *bw = new_bw; in sdp_add_bandwidth()
477 tmp->b_next = new_bw; in sdp_add_bandwidth()