39 lines
993 B
Text
39 lines
993 B
Text
$NetBSD: patch-ac,v 1.4 2014/09/14 12:48:35 shattered Exp $
|
|
|
|
--- src/control.cc.orig 2005-09-20 17:07:26.000000000 +0000
|
|
+++ src/control.cc
|
|
@@ -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 ((long 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 = (long 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 = (long int) client_data;
|
|
+ int n = (intptr_t) client_data;
|
|
analyser[n].resize (1);
|
|
|
|
} break;
|