diff --git a/src/lib9/fmt/sprint.c b/src/lib9/fmt/sprint.c index ac68851b..8551ca3c 100644 --- a/src/lib9/fmt/sprint.c +++ b/src/lib9/fmt/sprint.c @@ -12,7 +12,8 @@ * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE. */ #include -#include "fmt.h" +#include +#include "fmtdef.h" int sprint(char *buf, char *fmt, ...) diff --git a/src/lib9/fmt/vsnprint.c b/src/lib9/fmt/vsnprint.c index ad64203a..7272ab62 100644 --- a/src/lib9/fmt/vsnprint.c +++ b/src/lib9/fmt/vsnprint.c @@ -20,7 +20,6 @@ int vsnprint(char *buf, int len, char *fmt, va_list args) { Fmt f; - int x = 0; if(len <= 0) return -1;