mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
dtaction: main() returns an int and -Wformat-security fixes
This commit is contained in:
parent
55539b71c1
commit
e091b824c1
1 changed files with 5 additions and 3 deletions
|
@ -40,6 +40,7 @@
|
|||
****************************************************************************
|
||||
************************************<+>*************************************/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <limits.h>
|
||||
#include <stddef.h>
|
||||
#include <unistd.h>
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue