refactor: replace all stdint::uint32_t into short and more manageable u32_t
[lunaix-os.git] / lunaix-os / libs / klibc / stdio / ksprintf.c
index 2497e107b7821eba1ebe3eb7f09d49a2d3ce8b10..78c510a214761c8ab554a3c3066bd2ceb90196e9 100644 (file)
@@ -2,7 +2,7 @@
 #include <klibc/stdio.h>
 #include <klibc/stdlib.h>
 #include <klibc/string.h>
-#include <stdint.h>
+#include <lunaix/types.h>
 
 #define NUMBUFSIZ 24
 
@@ -26,7 +26,7 @@ __ksprintf_internal(char* buffer, char* fmt, size_t max_len, va_list vargs)
     //      Of course, with some modifications for porting to LunaixOS :)
 
     char numbuf[NUMBUFSIZ];
-    uint32_t ptr = 0;
+    u32_t ptr = 0;
     for (; *fmt; ++fmt) {
         if (max_len && ptr >= max_len - 1) {
             break;