summaryrefslogtreecommitdiff
path: root/include/kitchensink/internal/utils
diff options
context:
space:
mode:
Diffstat (limited to 'include/kitchensink/internal/utils')
-rw-r--r--include/kitchensink/internal/utils/kitlog.h6
-rw-r--r--include/kitchensink/internal/utils/kitringbuffer.h3
2 files changed, 5 insertions, 4 deletions
diff --git a/include/kitchensink/internal/utils/kitlog.h b/include/kitchensink/internal/utils/kitlog.h
index 6b24763..d298592 100644
--- a/include/kitchensink/internal/utils/kitlog.h
+++ b/include/kitchensink/internal/utils/kitlog.h
@@ -2,10 +2,10 @@
#define KITLOG_H
#ifdef NDEBUG
- #define LOG(...)
+#define LOG(...)
#else
- #include <stdio.h>
- #define LOG(...) fprintf(stderr, __VA_ARGS__); fflush(stderr)
+#include <stdio.h>
+#define LOG(...) fprintf(stderr, __VA_ARGS__); fflush(stderr)
#endif
#endif // KITLOG_H
diff --git a/include/kitchensink/internal/utils/kitringbuffer.h b/include/kitchensink/internal/utils/kitringbuffer.h
index 2f67520..153dfd4 100644
--- a/include/kitchensink/internal/utils/kitringbuffer.h
+++ b/include/kitchensink/internal/utils/kitringbuffer.h
@@ -6,7 +6,8 @@
typedef struct Kit_RingBuffer {
int size;
int len;
- int wpos, rpos;
+ int wpos;
+ int rpos;
char* data;
} Kit_RingBuffer;