From e5aa96acbf9107cd78f2536364c36f9a15751313 Mon Sep 17 00:00:00 2001 From: rsc Date: Sun, 26 Dec 2004 21:50:14 +0000 Subject: clean up for unix port --- src/lib9/fmt/fmt.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/lib9/fmt/fmt.c') diff --git a/src/lib9/fmt/fmt.c b/src/lib9/fmt/fmt.c index 976bf7ca..f9d8328d 100644 --- a/src/lib9/fmt/fmt.c +++ b/src/lib9/fmt/fmt.c @@ -13,7 +13,7 @@ */ #include #include -#include "utf.h" +#include "plan9.h" #include "fmt.h" #include "fmtdef.h" @@ -64,7 +64,11 @@ static Convfmt knownfmt[] = { 'p', __ifmt, 'r', __errfmt, 's', __strfmt, - 'u', __flagfmt, /* in Unix, __ifmt */ +#ifdef PLAN9PORT + 'u', __flagfmt, +#else + 'u', __ifmt, +#endif 'x', __ifmt, 0, nil, }; @@ -103,7 +107,7 @@ __fmtinstall(int c, Fmts f) } int -fmtinstall(int c, Fmts f) +fmtinstall(int c, int (*f)(Fmt*)) { int ret; -- cgit v1.2.3