Changeset 5577521 for lib/format_etsilive.c
- Timestamp:
- 05/18/18 14:55:54 (3 years ago)
- Branches:
- cachetimestamps, develop, master, rc-4.0.4, ringdecrementfix, ringperformance
- Children:
- 86b365b, 8a237c7
- Parents:
- e8e9052
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/format_etsilive.c
r0e2bdde r5577521 491 491 } 492 492 493 static etsisocket_t *select_next_packet(etsithread_t *et , libtrace_t *libtrace) {493 static etsisocket_t *select_next_packet(etsithread_t *et) { 494 494 495 495 int i; … … 504 504 } 505 505 506 static int etsilive_prepare_received(libtrace_t *libtrace, etsithread_t *et, 506 static int etsilive_prepare_received(libtrace_t *libtrace, 507 etsithread_t *et UNUSED, 507 508 etsisocket_t *esock, libtrace_packet_t *packet) { 508 509 … … 557 558 } 558 559 559 nextavail = select_next_packet(&(FORMAT_DATA->receivers[0]), 560 libtrace); 560 nextavail = select_next_packet(&(FORMAT_DATA->receivers[0])); 561 561 if (nextavail == NULL) { 562 562 /* No complete packets available, take a short … … 602 602 } 603 603 604 static int etsilive_get_framing_length(const libtrace_packet_t *packet ) {604 static int etsilive_get_framing_length(const libtrace_packet_t *packet UNUSED) { 605 605 606 606 return 0; … … 625 625 626 626 static libtrace_linktype_t etsilive_get_link_type( 627 const libtrace_packet_t *packet ) {627 const libtrace_packet_t *packet UNUSED) { 628 628 return TRACE_TYPE_ETSILI; 629 629 } … … 692 692 693 693 wandder_encoder_t *encoder; 694 uint8_t *tosend; 695 uint32_t tosendlen; 694 wandder_encoded_result_t *tosend; 696 695 int ret = 0; 697 696 uint64_t zero = 0; … … 753 752 wandder_encode_endseq(encoder); // End Outermost Sequence 754 753 755 tosend = wandder_encode_finish(encoder , &tosendlen);754 tosend = wandder_encode_finish(encoder); 756 755 757 756 if (tosend != NULL) { … … 759 758 * sending. 760 759 */ 761 ret = send(fd, tosend, tosendlen, 0); 762 } 763 760 ret = send(fd, tosend->encoded, tosend->len, 0); 761 } 762 763 wandder_release_encoded_result(encoder, tosend); 764 764 free_wandder_encoder(encoder); 765 765 return ret;
Note: See TracChangeset
for help on using the changeset viewer.