summaryrefslogtreecommitdiffstats
path: root/vbox.cpp
diff options
context:
space:
mode:
authorSuper User2008-06-14 08:34:50 +0200
committerSuper User2008-06-14 08:34:50 +0200
commitd2b113f2c4f11acfaee1b2e0fd2f03744a89f6d4 (patch)
tree8c9e9504a275a43d5a8785dcca7badf28ada5999 /vbox.cpp
parentfixed dialing-bug when dialing chan_lcr (diff)
downloadlcr-d2b113f2c4f11acfaee1b2e0fd2f03744a89f6d4.tar.gz
lcr-d2b113f2c4f11acfaee1b2e0fd2f03744a89f6d4.tar.xz
lcr-d2b113f2c4f11acfaee1b2e0fd2f03744a89f6d4.zip
changed long to int (64 bit system's compatibilty)
Diffstat (limited to 'vbox.cpp')
-rw-r--r--vbox.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/vbox.cpp b/vbox.cpp
index 419c226..0b30c6c 100644
--- a/vbox.cpp
+++ b/vbox.cpp
@@ -65,7 +65,7 @@ static void vbox_trace_header(class VBoxPort *vbox, char *message, int direction
int VBoxPort::handler(void)
{
struct lcr_msg *message;
- unsigned long tosend;
+ unsigned int tosend;
unsigned char buffer[ISDN_TRANSMIT];
time_t currenttime;
class Endpoint *epoint;
@@ -107,7 +107,7 @@ int VBoxPort::handler(void)
}
/* calculate the number of bytes */
- tosend = (unsigned long)((now_d-p_vbox_audio_start)*8000) - p_vbox_audio_transferred;
+ tosend = (unsigned int)((now_d-p_vbox_audio_start)*8000) - p_vbox_audio_transferred;
/* wait for more */
if (tosend < sizeof(buffer))
@@ -189,7 +189,7 @@ int VBoxPort::handler(void)
/*
* endpoint sends messages to the vbox port
*/
-int VBoxPort::message_epoint(unsigned long epoint_id, int message_id, union parameter *param)
+int VBoxPort::message_epoint(unsigned int epoint_id, int message_id, union parameter *param)
{
struct lcr_msg *message;
class Endpoint *epoint;