Revision b87e7c7a

View differences:

Test/msg_buffer_test.c
17 17
{
18 18
	msg_buffer_set_ths_to(msgb, th1_to_us, th2_to_us);
19 19
	msg_buffer_set_ths_size(msgb, th1_size, th2_size);
20
	msg_buffer_set_initial_buffering_to_us(msgb, start_to_us);
20
	msg_buffer_set_start_buffering_to_us(msgb, start_to_us);
21 21
	msg_buffer_set_start_buf_size_th(msgb, start_size);
22 22
	msg_buffer_set_flush_to_us(msgb, flush_to_us);
23 23
}
src/msg_buffer.c
61 61
static int msg_buffer_increase_n_slots(struct msg_buffer *msgb)
62 62
{
63 63
	uint32_t new_nslots = msgb->nslots << 1;
64
	int i;
64
	uint32_t i;
65 65
	int32_t next_slot_copy = msgb->next_slot_pop;
66 66

  
67 67
	struct msg_buffer_slot * new_slots = (struct msg_buffer_slot *)
......
568 568
	}
569 569
}
570 570

  
571
void msg_buffer_set_initial_buffering_to_us(struct msg_buffer *msgb,
571
void msg_buffer_set_start_buffering_to_us(struct msg_buffer *msgb,
572 572
					    uint32_t to_us)
573 573
{
574 574
	if (msgb) {
......
619 619
	if (msgb) {
620 620
		return msgb->nslots;
621 621
	}
622

  
623
	return 0;
622 624
}
src/msg_buffer.h
114 114
			     uint32_t th1_size,
115 115
			     uint32_t th2_size);
116 116
/* set the timeout (us) for the initial buffering */
117
void msg_buffer_set_initial_buffering_to_us(struct msg_buffer *msgb,
117
void msg_buffer_set_start_buffering_to_us(struct msg_buffer *msgb,
118 118
					    uint32_t to_us);
119 119
/* set the size (bytes) of the initial buffering
120 120
 *

Also available in: Unified diff