Changeset 14575 for trunk/FACT++/dim/src/open_dns.c
- Timestamp:
- 11/07/12 10:47:40 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/dim/src/open_dns.c
r14403 r14575 173 173 char node[MAX_DNS_NODE]; 174 174 int port; 175 long sid, cid;175 dim_long sid, cid; 176 176 177 177 DISABLE_AST … … 235 235 } 236 236 237 long dis_add_dns(char *node_name, int port_number)237 dim_long dis_add_dns(char *node_name, int port_number) 238 238 { 239 239 DNS_CONN *connp; … … 253 253 dll_insert_queue( (DLL *) DNS_conn_head, (DLL *) connp ); 254 254 } 255 return ( long)connp;256 } 257 258 long dic_add_dns(char *node_name, int port_number)255 return (dim_long)connp; 256 } 257 258 dim_long dic_add_dns(char *node_name, int port_number) 259 259 { 260 260 DNS_CONN *connp; … … 274 274 dll_insert_queue( (DLL *) DNS_conn_head, (DLL *) connp ); 275 275 } 276 return ( long)connp;276 return (dim_long)connp; 277 277 } 278 278 … … 296 296 } 297 297 298 int close_dns( long dnsid, SRC_TYPES src_type)298 int close_dns(dim_long dnsid, SRC_TYPES src_type) 299 299 { 300 300 DNS_CONN *connp; … … 311 311 } 312 312 313 int open_dns( long dnsid, void (*recv_rout)(), void (*error_rout)(), int tmout_min, int tmout_max, SRC_TYPES src_type )313 int open_dns(dim_long dnsid, void (*recv_rout)(), void (*error_rout)(), int tmout_min, int tmout_max, SRC_TYPES src_type ) 314 314 { 315 315 char nodes[MAX_DNS_NODE]; … … 424 424 } 425 425 426 long dns_get_dnsid(int conn_id, SRC_TYPES src_type)426 dim_long dns_get_dnsid(int conn_id, SRC_TYPES src_type) 427 427 { 428 428 DNS_CONN *connp; … … 449 449 if(connp == DNS_ids[src_type]) 450 450 { 451 return ( long)0;451 return (dim_long)0; 452 452 } 453 453 else 454 454 { 455 return ( long)connp;456 } 457 } 458 return ( long)-1;459 } 455 return (dim_long)connp; 456 } 457 } 458 return (dim_long)-1; 459 }
Note:
See TracChangeset
for help on using the changeset viewer.