Nucleus
Barry System headers (remove libc dependency) 18495cf (3 years, 2 months ago)
diff --git a/lib/printf.c b/lib/printf.c
index 9836835..977e54d 100644
--- a/lib/printf.c
+++ b/lib/printf.c
@@ -1,7 +1,7 @@
-#include <stdint.h>
#include <stdarg.h>
-#include <string.h>
-#include <io.h>
+#include <stdint.h>
+#include <nucleus/io.h>
+#include <nucleus/lib.h>
#define IS_DIGIT(c) ((c) >= '0' && (c) <= '9')
@@ -242,7 +242,7 @@ repeat:
/* Format a string into a buffer */
int
-sprintf(char *buf, char *fmt, ...)
+sprintf(char *buf, const char *fmt, ...)
{
int ret;
va_list args;