dtaction: main() returns an int and -Wformat-security fixes
This commit is contained in:
@@ -40,6 +40,7 @@
|
|||||||
****************************************************************************
|
****************************************************************************
|
||||||
************************************<+>*************************************/
|
************************************<+>*************************************/
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
@@ -280,7 +281,7 @@ CheckForDone(
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
int
|
||||||
main(
|
main(
|
||||||
int argc,
|
int argc,
|
||||||
char **argv )
|
char **argv )
|
||||||
@@ -306,7 +307,7 @@ main(
|
|||||||
&argc, argv)) )
|
&argc, argv)) )
|
||||||
{
|
{
|
||||||
setlocale(LC_ALL, "");
|
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);
|
exit(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -351,7 +352,7 @@ main(
|
|||||||
*/
|
*/
|
||||||
if ( (actionName = argv[1]) == NULL)
|
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);
|
exit(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -397,6 +398,7 @@ main(
|
|||||||
|
|
||||||
XtAppMainLoop(appContext);
|
XtAppMainLoop(appContext);
|
||||||
|
|
||||||
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user