**
******************************************************************************/
#include <stdio.h>
+#include <stdint.h>
#include <Xm/DialogS.h>
#include <Xm/Form.h>
#include <Xm/MwmUtil.h>
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)
static void
ExitCB (Widget dialog, XtPointer client_data, XtPointer call_data)
{
- exit((int) client_data);
+ exit((int) (intptr_t) client_data);
}
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;