mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
Fix build on 64 bit platforms
This commit is contained in:
parent
924c483f27
commit
366285f8d4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=162857
@ -1,22 +1,37 @@
|
||||
--- clients/audio/aupanel/aupanel.c Thu Apr 7 15:08:14 2005
|
||||
+++ clients/audio/aupanel/aupanel.c Mon Oct 10 11:23:01 2005
|
||||
@@ -29,4 +29,5 @@
|
||||
--- clients/audio/aupanel/aupanel.c.orig Tue Nov 22 03:09:06 2005
|
||||
+++ clients/audio/aupanel/aupanel.c Sat May 20 10:58:12 2006
|
||||
@@ -28,6 +28,7 @@
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
+#include <inttypes.h>
|
||||
#include <stdlib.h>
|
||||
#ifndef SYSV
|
||||
@@ -262,5 +263,5 @@
|
||||
#include <audio/Aos.h> /* for string and other os stuff */
|
||||
@@ -271,7 +272,7 @@
|
||||
if (!state) /* ignore resets */
|
||||
return;
|
||||
|
||||
- AuDeviceInputMode(da) = (int) XawToggleGetCurrent(w) == 1
|
||||
+ AuDeviceInputMode(da) = (intptr_t) XawToggleGetCurrent(w) == 1
|
||||
? AuDeviceInputModeLineIn : AuDeviceInputModeMicrophone;
|
||||
|
||||
@@ -326,5 +327,5 @@
|
||||
AuSetDeviceAttributes(g->aud, AuDeviceIdentifier(da),
|
||||
@@ -335,7 +336,7 @@
|
||||
{
|
||||
GlobalDataPtr g = (GlobalDataPtr) gp;
|
||||
AuDeviceAttributes *da = &g->da[g->deviceNum];
|
||||
- int value = (int) valuep;
|
||||
+ intptr_t value = (intptr_t) valuep;
|
||||
|
||||
AuDeviceGain(da) = AuFixedPointFromSum(value, 0);
|
||||
AuSetDeviceAttributes(g->aud, AuDeviceIdentifier(da),
|
||||
@@ -366,7 +367,7 @@
|
||||
g->restoreValues[g->deviceNum] = current;
|
||||
setGain(w, gp, (XtPointer)0);
|
||||
} else if(g->restoreValues[g->deviceNum] > 0){
|
||||
- setGain(w, gp, (XtPointer)g->restoreValues[g->deviceNum]);
|
||||
+ setGain(w, gp, (XtPointer)(intptr_t)g->restoreValues[g->deviceNum]);
|
||||
g->restoreValues[g->deviceNum] = 0;
|
||||
}
|
||||
showDevice((GlobalDataPtr)gp);
|
||||
|
Loading…
Reference in New Issue
Block a user