diff options
author | Jeremy Huddleston <jeremyhu@apple.com> | 2011-11-11 11:12:22 -0800 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@apple.com> | 2011-11-11 11:12:22 -0800 |
commit | 33b5c9413463613d341d15184b34a4f4c4e70e56 (patch) | |
tree | ac7a07d784497189d16e339a3d901191128e4427 | |
parent | b9f6482d5fc413222334c2370ef8b9693f4b50fd (diff) |
Fix -Wformat warnings
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
-rw-r--r-- | alias.c | 2 | ||||
-rw-r--r-- | parseutils.c | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -278,7 +278,7 @@ ApplyAliases(XkbDescPtr xkb, Bool toGeom, AliasInfo ** info_in) if ((a - old) != (nOld + nNew)) { WSGO2("Expected %d aliases total but created %d\n", nOld + nNew, - a - old); + (int)(a - old)); } #endif if (toGeom) diff --git a/parseutils.c b/parseutils.c index ca665e2..253cd9d 100644 --- a/parseutils.c +++ b/parseutils.c @@ -748,12 +748,12 @@ IncludeCreate(char *str, unsigned merge) void PrintStmtAddrs(ParseCommon * stmt) { - fprintf(stderr, "0x%x", stmt); + fprintf(stderr, "%p", stmt); if (stmt) { do { - fprintf(stderr, "->0x%x", stmt->next); + fprintf(stderr, "->%p", stmt->next); stmt = stmt->next; } while (stmt); |