From e51d581782413243e2bdfcca749f4124abc0ccf5 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Tue, 20 Nov 2012 16:22:04 +0000 Subject: [PATCH] dtaction: Resolve 8 warnings caused by -Wall --- cde/programs/dtaction/Main.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/cde/programs/dtaction/Main.c b/cde/programs/dtaction/Main.c index 3445b986..25712fcf 100644 --- a/cde/programs/dtaction/Main.c +++ b/cde/programs/dtaction/Main.c @@ -49,7 +49,7 @@ #include #include /* for MAXPATHLEN and MAXHOSTNAMELEN */ -#ifdef sun +#if defined(sun) || defined(linux) #include #include #endif @@ -61,6 +61,7 @@ #include #include #include +#include #include #include #include @@ -87,12 +88,6 @@ XrmOptionDescRec option_list[] = { "-termOpts", "termOpts", XrmoptionSepArg, NULL}, }; -/* Fallback Resources */ -static char *fallback_resources[] = { - "*timeout: 5", - (char *) NULL -}; - typedef struct { char * user; char * contextDir; @@ -291,7 +286,6 @@ main( int n=0; char *actionName; int numArgs = 0; - char contextDir[MAXPATHLEN+1]; DtActionArg *ap = NULL; XtSetLanguageProc(NULL, NULL, NULL); -- 2.25.1