summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);