summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2011-11-11 11:12:22 -0800
committerJeremy Huddleston <jeremyhu@apple.com>2011-11-11 11:12:22 -0800
commit33b5c9413463613d341d15184b34a4f4c4e70e56 (patch)
treeac7a07d784497189d16e339a3d901191128e4427
parentb9f6482d5fc413222334c2370ef8b9693f4b50fd (diff)
Fix -Wformat warnings
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
-rw-r--r--alias.c2
-rw-r--r--parseutils.c4
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);