1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-15 04:32:24 +00:00

dticon: resolve 3 compiler warnings

This commit is contained in:
Peter Howkins 2015-01-07 14:19:38 +00:00
parent 93f3878b4e
commit 561d858140
3 changed files with 9 additions and 3 deletions

View file

@ -59,6 +59,7 @@
**
******************************************************************************/
#include <stdio.h>
#include <stdint.h>
#include <Xm/DialogS.h>
#include <Xm/Form.h>
#include <Xm/MwmUtil.h>
@ -332,7 +333,7 @@ HelpTriggerCB(
stat_out("Entering HelpTriggerCB: help-tag=%d\n", (int) client_data);
#endif
HelpSetVolAndLocation((int) client_data);
HelpSetVolAndLocation((int) (intptr_t) client_data);
#ifdef DEBUG
if (debug)

View file

@ -363,7 +363,7 @@ main(
static void
ExitCB (Widget dialog, XtPointer client_data, XtPointer call_data)
{
exit((int) client_data);
exit((int) (intptr_t) client_data);
}
void

View file

@ -2341,7 +2341,12 @@ SaveSession( void )
if (last_fname[0] != '\0')
sprintf(bufr, "%s*file: %s\n", bufr, last_fname);
write (fd, bufr, strlen(bufr));
if(-1 == write (fd, bufr, strlen(bufr))) {
fprintf(stderr, "write() to session failed\n");
XtFree ((char *)path);
XtFree ((char *)name);
return;
}
n = 0;