BarryServer : Git

All the code for all my projects
// BarryServer : Git / Nucleus / commit / 18495cfe1cf5f7fc6f6b0c8c12d7f34dfded1be0 / lib / printf.c

// Related

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;