From f913c616eeb80147ee0d96c7a8938e4e2907d822 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Tue, 13 Jan 2015 14:50:05 +0000 Subject: [PATCH] dtpad: Resolve 7 compiler warnings. --- cde/programs/dtpad/main.c | 2 +- cde/programs/dtpad/ttSaveSupport.c | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/cde/programs/dtpad/main.c b/cde/programs/dtpad/main.c index ff18cf71..ef37464b 100644 --- a/cde/programs/dtpad/main.c +++ b/cde/programs/dtpad/main.c @@ -1822,7 +1822,7 @@ Usage( template = (GETMESSAGE(7,10, message_string2)); - fprintf (stderr, template); + fprintf (stderr, "%s", template); exit (0); } diff --git a/cde/programs/dtpad/ttSaveSupport.c b/cde/programs/dtpad/ttSaveSupport.c index 6315e5d3..c63871fe 100644 --- a/cde/programs/dtpad/ttSaveSupport.c +++ b/cde/programs/dtpad/ttSaveSupport.c @@ -57,13 +57,13 @@ /* definitions from tttk/tttkutils.h */ char _TTKeys[7]; -#define _TTCBKey ((int)&_TTKeys[0]) -#define _TTClientCBKey ((int)&_TTKeys[1]) -#define _TTClientDataKey ((int)&_TTKeys[2]) -#define _TTDepositPatKey ((int)&_TTKeys[3]) -#define _TTJoinInfoKey ((int)&_TTKeys[4]) -#define _TTContractKey ((int)&_TTKeys[5]) -#define _TTSubContractKey ((int)&_TTKeys[6]) +#define _TTCBKey ((int)(intptr_t)&_TTKeys[0]) +#define _TTClientCBKey ((int)(intptr_t)&_TTKeys[1]) +#define _TTClientDataKey ((int)(intptr_t)&_TTKeys[2]) +#define _TTDepositPatKey ((int)(intptr_t)&_TTKeys[3]) +#define _TTJoinInfoKey ((int)(intptr_t)&_TTKeys[4]) +#define _TTContractKey ((int)(intptr_t)&_TTKeys[5]) +#define _TTSubContractKey ((int)(intptr_t)&_TTKeys[6]) extern Editor *pPadList; /* list of Editor instances - declared in main.c */ -- 2.25.1