Formatting
This commit is contained in:
parent
2886a81574
commit
e5006ed262
1 changed files with 3 additions and 3 deletions
6
driver.c
6
driver.c
|
@ -17,9 +17,9 @@ main(void)
|
|||
|
||||
// Single writes
|
||||
printf("\n=== Single writes ===\n\n");
|
||||
|
||||
|
||||
int idx = 0;
|
||||
while (idx < 5) {
|
||||
while(idx < 5) {
|
||||
if(rb_push_back(&rb, &arr[idx], memcpy) != WriteOk) {
|
||||
printf("Failed to write data to buffer...\n");
|
||||
}
|
||||
|
@ -37,7 +37,7 @@ main(void)
|
|||
printf("idx: %d\n", idx);
|
||||
|
||||
// Push the rest
|
||||
while (rb_push_back(&rb, &arr[idx], memcpy) == WriteOk) {
|
||||
while(rb_push_back(&rb, &arr[idx], memcpy) == WriteOk) {
|
||||
printf("Wrote: %d\n", arr[idx]);
|
||||
idx++;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue