From: Peter Howkins Date: Thu, 30 Aug 2012 16:55:43 +0000 (+0100) Subject: dtaction: main() returns an int and -Wformat-security fixes X-Git-Tag: 2.2.0b~35 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e091b824c12f4208a3964d973f427668426ff6fb;p=oweals%2Fcde.git dtaction: main() returns an int and -Wformat-security fixes --- diff --git a/cde/programs/dtaction/Main.c b/cde/programs/dtaction/Main.c index 866ec8db..3445b986 100644 --- a/cde/programs/dtaction/Main.c +++ b/cde/programs/dtaction/Main.c @@ -40,6 +40,7 @@ **************************************************************************** ************************************<+>*************************************/ +#include #include #include #include @@ -280,7 +281,7 @@ CheckForDone( } -void +int main( int argc, char **argv ) @@ -306,7 +307,7 @@ main( &argc, argv)) ) { setlocale(LC_ALL, ""); - fprintf(stderr,GETMESSAGE(1,11,"Can't open display.\n")); + fprintf(stderr, "%s", GETMESSAGE(1,11,"Can't open display.\n")); exit(-1); } @@ -351,7 +352,7 @@ main( */ if ( (actionName = argv[1]) == NULL) { - fprintf(stderr,GETMESSAGE(1,10,"No action name specified.\n")); + fprintf(stderr, "%s", GETMESSAGE(1,10,"No action name specified.\n")); exit(-1); } @@ -397,6 +398,7 @@ main( XtAppMainLoop(appContext); + return EXIT_SUCCESS; }