40 lines
1,013 B
Text
40 lines
1,013 B
Text
|
$NetBSD: patch-ac,v 1.3 2008/08/02 19:33:21 dholland Exp $
|
||
|
|
||
|
--- src/control.cc.orig 2002-05-14 18:00:29.000000000 -0400
|
||
|
+++ src/control.cc 2008-08-02 15:33:11.000000000 -0400
|
||
|
@@ -7,6 +7,7 @@
|
||
|
|
||
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
+#include <stdint.h>
|
||
|
|
||
|
#include <Xm/Xm.h>
|
||
|
#include <Xm/Form.h>
|
||
|
@@ -225,7 +226,7 @@ control_set_default ()
|
||
|
void
|
||
|
control_callback (Widget widget, XtPointer client_data, XtPointer)
|
||
|
{
|
||
|
- switch ((int) client_data) {
|
||
|
+ switch ((intptr_t) client_data) {
|
||
|
|
||
|
case SOUNDCARD: {
|
||
|
sample.source = Sample::SOUNDCARD;
|
||
|
@@ -559,7 +560,7 @@ analyser_callback (Widget, XtPointer cli
|
||
|
|
||
|
case XmCR_EXPOSE: {
|
||
|
|
||
|
- int n = (int) client_data;
|
||
|
+ int n = (intptr_t) client_data;
|
||
|
|
||
|
if (!analyser[n].isrealized ())
|
||
|
analyser[n].realize (XtDisplay (analyser_drawing_w[n]),
|
||
|
@@ -573,7 +574,7 @@ analyser_callback (Widget, XtPointer cli
|
||
|
|
||
|
case XmCR_RESIZE: {
|
||
|
|
||
|
- int n = (int) client_data;
|
||
|
+ int n = (intptr_t) client_data;
|
||
|
analyser[n].resize (1);
|
||
|
|
||
|
} break;
|