Converted c++ style comments to c. Per coding standard. See coding-standard.txt

This commit is contained in:
skarg
2007-07-26 16:25:35 +00:00
parent 519e9fd31b
commit 5fb27cae1a
3 changed files with 12 additions and 12 deletions
+6 -6
View File
@@ -64,8 +64,8 @@ bool bip_valid(void)
void bip_cleanup(void) void bip_cleanup(void)
{ {
// if (bip_valid()) /* if (bip_valid()) */
// close(BIP_Socket); /* close(BIP_Socket); */
BIP_Socket = -1; BIP_Socket = -1;
return; return;
@@ -74,7 +74,7 @@ void bip_cleanup(void)
/* set using network byte order */ /* set using network byte order */
void bip_set_addr(uint32_t net_address) void bip_set_addr(uint32_t net_address)
{ {
// BIP_Address.s_addr = ntohl(net_address); /* BIP_Address.s_addr = ntohl(net_address); */
BIP_Address.s_addr = net_address; BIP_Address.s_addr = net_address;
} }
@@ -87,7 +87,7 @@ uint32_t bip_get_addr(void)
/* set using network byte order */ /* set using network byte order */
void bip_set_broadcast_addr(uint32_t net_address) void bip_set_broadcast_addr(uint32_t net_address)
{ {
// BIP_Broadcast_Address.s_addr = ntohl(net_address); /* BIP_Broadcast_Address.s_addr = ntohl(net_address); */
BIP_Broadcast_Address.s_addr = net_address; BIP_Broadcast_Address.s_addr = net_address;
} }
@@ -128,8 +128,8 @@ int bip_send_pdu(BACNET_ADDRESS * dest, /* destination address */
(void) npdu_data; (void) npdu_data;
/* assumes that the driver has already been initialized */ /* assumes that the driver has already been initialized */
// if (BIP_Socket < 0) /* if (BIP_Socket < 0) */
// return BIP_Socket; /* return BIP_Socket; */
mtu[0] = BVLL_TYPE_BACNET_IP; mtu[0] = BVLL_TYPE_BACNET_IP;
bip_dest.sin_family = AF_INET; bip_dest.sin_family = AF_INET;
+5 -5
View File
@@ -35,15 +35,15 @@ struct sockaddr {
struct in_addr { struct in_addr {
uint32_t s_addr; // load with inet_aton() uint32_t s_addr; /* load with inet_aton() */
}; };
struct sockaddr_in struct sockaddr_in
{ {
int16_t sin_family; // e.g. AF_INET int16_t sin_family; /* e.g. AF_INET */
uint16_t sin_port; // e.g. htons(3490) uint16_t sin_port; /* e.g. htons(3490) */
struct in_addr sin_addr; // see struct in_addr, below struct in_addr sin_addr; /* see struct in_addr, below */
char sin_zero[8]; // zero this if you want to char sin_zero[8]; /* zero this if you want to */
}; };
+1 -1
View File
@@ -5,7 +5,7 @@
#ifndef __cplusplus #ifndef __cplusplus
//typedef int _Bool; /*typedef int _Bool; */
#ifndef bool #ifndef bool
#define bool _Bool #define bool _Bool
#endif #endif