X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=endpoint.cpp;h=e9c680f3315d303d31d7bceafb6335f6a57db5df;hp=48e0db642493e9eedfe68c0c70a5631eaa2713c5;hb=6bf7c7f9db360d6031417b012dcb0e90e2251cd6;hpb=0efcf371b4a61fa1376e83d2b7404aeb47a36e26 diff --git a/endpoint.cpp b/endpoint.cpp index 48e0db6..e9c680f 100644 --- a/endpoint.cpp +++ b/endpoint.cpp @@ -11,7 +11,7 @@ #include "main.h" -unsigned long epoint_serial = 1; /* initial value must be 1, because 0== no epoint */ +unsigned int epoint_serial = 1; /* initial value must be 1, because 0== no epoint */ class Endpoint *epoint_first = NULL; @@ -19,7 +19,7 @@ class Endpoint *epoint_first = NULL; /* * find the epoint with epoint_id */ -class Endpoint *find_epoint_id(unsigned long epoint_id) +class Endpoint *find_epoint_id(unsigned int epoint_id) { class Endpoint *epoint = epoint_first; @@ -38,7 +38,7 @@ class Endpoint *find_epoint_id(unsigned long epoint_id) /* * endpoint constructor (link with either port or join id) */ -Endpoint::Endpoint(unsigned long port_id, unsigned long join_id) +Endpoint::Endpoint(unsigned int port_id, unsigned int join_id) { class Port *port; class Endpoint **epointpointer; @@ -67,7 +67,7 @@ Endpoint::Endpoint(unsigned long port_id, unsigned long join_id) port = find_port_id(port_id); if (port) { - if ((port->p_type&PORT_CLASS_mISDN_MASK) == PORT_CLASS_mISDN_DSS1) + if ((port->p_type&PORT_CLASS_MASK) == PORT_CLASS_mISDN) earlyb = ((class PmISDN *)port)->p_m_mISDNport->earlyb; if (!portlist_new(port_id, port->p_type, earlyb)) FATAL("No memory for portlist.\n"); @@ -138,7 +138,7 @@ Endpoint::~Endpoint(void) /* create new portlist relation */ -struct port_list *Endpoint::portlist_new(unsigned long port_id, int port_type, int earlyb) +struct port_list *Endpoint::portlist_new(unsigned int port_id, int port_type, int earlyb) { struct port_list *portlist, **portlistpointer;