On 30/09/13 09:00, Dr Andrew C Aitchison wrote:
>> Does the attached patch quieten it down any for you?
>
> That looks like the wrong patch. Something to do with kmem and SLEB ?
Doh. Too many lines of development ongoing...
Second try attached.
--
Cheers,
Jeremy
diff --git a/src/exim_monitor/em_TextPop.c b/src/exim_monitor/em_TextPop.c
index faa51ed..cc443db 100644
--- a/src/exim_monitor/em_TextPop.c
+++ b/src/exim_monitor/em_TextPop.c
@@ -468,8 +468,8 @@ struct SearchAndReplace * search;
text.firstPos = 0;
text.format = FMT8BIT;
- dir = (XawTextScanDirection)(int) ((caddr_t)XawToggleGetCurrent(search->left_toggle) -
- R_OFFSET);
+ dir = (XawTextScanDirection)(ptrdiff_t)
+ ((caddr_t)XawToggleGetCurrent(search->left_toggle) - R_OFFSET);
pos = XawTextSearch( tw, dir, &text);
diff --git a/src/exim_monitor/em_strip.c b/src/exim_monitor/em_strip.c
index 00675d4..f6347a8 100644
--- a/src/exim_monitor/em_strip.c
+++ b/src/exim_monitor/em_strip.c
@@ -63,7 +63,7 @@ static void stripchartAction(Widget w, XtPointer client_data, XtPointer value)
double *ptr = (double *)value;
static int thresholds[] =
{10, 20, 50, 100, 200, 500, 1000, 2000, 5000, 10000, 0};
-int num = (int)client_data;
+int num = (int)(long)client_data;
int oldmax = 0;
int newmax = 0;
int newvalue = 0;
@@ -249,7 +249,7 @@ xs_SetValues(chart, 11,
XtNfromVert, label);
XtAddCallback(chart, "getValue", stripchartAction,
- (XtPointer)stripchart_count);
+ (XtPointer)(long)stripchart_count);
stripchart_last_total[stripchart_count] = 0;
stripchart_max[stripchart_count] = 10;