Ignore:
Timestamp:
11/07/12 10:47:40 (12 years ago)
Author:
tbretz
Message:
Updated to v20r01.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/dim/src/open_dns.c

    r14403 r14575  
    173173        char node[MAX_DNS_NODE];
    174174        int port;
    175         long sid, cid;
     175        dim_long sid, cid;
    176176
    177177        DISABLE_AST
     
    235235}
    236236
    237 long dis_add_dns(char *node_name, int port_number)
     237dim_long dis_add_dns(char *node_name, int port_number)
    238238{
    239239        DNS_CONN *connp;
     
    253253                dll_insert_queue( (DLL *) DNS_conn_head, (DLL *) connp );
    254254        }
    255         return (long)connp;
    256 }
    257 
    258 long dic_add_dns(char *node_name, int port_number)
     255        return (dim_long)connp;
     256}
     257
     258dim_long dic_add_dns(char *node_name, int port_number)
    259259{
    260260        DNS_CONN *connp;
     
    274274                dll_insert_queue( (DLL *) DNS_conn_head, (DLL *) connp );
    275275        }
    276         return (long)connp;
     276        return (dim_long)connp;
    277277}
    278278
     
    296296}
    297297
    298 int close_dns(long dnsid, SRC_TYPES src_type)
     298int close_dns(dim_long dnsid, SRC_TYPES src_type)
    299299{
    300300        DNS_CONN *connp;
     
    311311}
    312312
    313 int open_dns(long dnsid, void (*recv_rout)(), void (*error_rout)(), int tmout_min, int tmout_max, SRC_TYPES src_type )
     313int open_dns(dim_long dnsid, void (*recv_rout)(), void (*error_rout)(), int tmout_min, int tmout_max, SRC_TYPES src_type )
    314314{
    315315        char nodes[MAX_DNS_NODE];
     
    424424}       
    425425
    426 long dns_get_dnsid(int conn_id, SRC_TYPES src_type)
     426dim_long dns_get_dnsid(int conn_id, SRC_TYPES src_type)
    427427{
    428428        DNS_CONN *connp;
     
    449449                if(connp == DNS_ids[src_type])
    450450                {
    451                         return (long)0;
     451                        return (dim_long)0;
    452452                }
    453453                else
    454454                {
    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.