projects
/
lcr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
changed long to int (64 bit system's compatibilty)
[lcr.git]
/
endpoint.cpp
diff --git
a/endpoint.cpp
b/endpoint.cpp
index
b5d6f64
..
1dce9f1
100644
(file)
--- a/
endpoint.cpp
+++ b/
endpoint.cpp
@@
-9,10
+9,9
@@
** **
\*****************************************************************************/
** **
\*****************************************************************************/
-#include <stdio.h>
#include "main.h"
#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;
class Endpoint *epoint_first = NULL;
@@
-20,7
+19,7
@@
class Endpoint *epoint_first = NULL;
/*
* find the epoint with epoint_id
*/
/*
* 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;
{
class Endpoint *epoint = epoint_first;
@@
-39,7
+38,7
@@
class Endpoint *find_epoint_id(unsigned long epoint_id)
/*
* endpoint constructor (link with either port or join id)
*/
/*
* endpoint constructor (link with either port or join id)
*/
-Endpoint::Endpoint(unsigned
long port_id, unsigned long join_id, unsigned long use_epoint
_id)
+Endpoint::Endpoint(unsigned
int port_id, unsigned int join
_id)
{
class Port *port;
class Endpoint **epointpointer;
{
class Port *port;
class Endpoint **epointpointer;
@@
-60,10
+59,7
@@
Endpoint::Endpoint(unsigned long port_id, unsigned long join_id, unsigned long u
*epointpointer = this;
/* serial */
*epointpointer = this;
/* serial */
- if (use_epoint_id)
- ep_serial = use_epoint_id;
- else
- ep_serial = epoint_serial++;
+ ep_serial = epoint_serial++;
/* link to join or port */
if (port_id)
/* link to join or port */
if (port_id)
@@
-142,7
+138,7
@@
Endpoint::~Endpoint(void)
/* create new portlist relation
*/
/* 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;
{
struct port_list *portlist, **portlistpointer;