Formatting

This commit is contained in:
Imbus 2024-07-03 13:31:57 +02:00
parent 2886a81574
commit e5006ed262

View file

@ -19,7 +19,7 @@ main(void)
printf("\n=== Single writes ===\n\n"); printf("\n=== Single writes ===\n\n");
int idx = 0; int idx = 0;
while (idx < 5) { while(idx < 5) {
if(rb_push_back(&rb, &arr[idx], memcpy) != WriteOk) { if(rb_push_back(&rb, &arr[idx], memcpy) != WriteOk) {
printf("Failed to write data to buffer...\n"); printf("Failed to write data to buffer...\n");
} }
@ -37,7 +37,7 @@ main(void)
printf("idx: %d\n", idx); printf("idx: %d\n", idx);
// Push the rest // 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]); printf("Wrote: %d\n", arr[idx]);
idx++; idx++;
} }