From 33b5c9413463613d341d15184b34a4f4c4e70e56 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Fri, 11 Nov 2011 11:12:22 -0800 Subject: Fix -Wformat warnings Signed-off-by: Jeremy Huddleston --- alias.c | 2 +- parseutils.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/alias.c b/alias.c index ba55d3d..ca56909 100644 --- a/alias.c +++ b/alias.c @@ -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); -- cgit v1.2.3