Ignore:
Timestamp:
11/25/12 14:01:01 (12 years ago)
Author:
tbretz
Message:
Updated to v20r4
Location:
trunk/FACT++/dim/src/examples
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/dim/src/examples/test_client.cxx

    r11881 r14698  
    4545        }
    4646public :
    47         StrService() : DimInfo("TEST/STRVAL","not available") {};
     47        StrService() : DimInfo("TEST/STRVAL",(char *)"not available") {};
    4848};
    4949
  • trunk/FACT++/dim/src/examples/test_server.c

    r14575 r14698  
    6464int main(int argc, char **argv)
    6565{
    66         int i, id, *ptr/*, big_ids[20]*/;
     66        int i, id/*, big_ids[20]*/;
    6767        char aux[80];
    6868        char name[84]/*, name1[132]*/;
     
    9797        if(new_dns)
    9898                dnsid = dis_add_dns(extra_dns,0);
     99        if(dnsid){}
    99100/*
    100101        buf_sz = dim_get_write_buffer_size();
     
    120121        t.c = 'a';
    121122        t.f = (float)4.56;
    122         ptr = (int *)&t;
    123123        strcpy(t.str,"hello world");
    124124
  • trunk/FACT++/dim/src/examples/test_server.cxx

    r12757 r14698  
    5757public :
    5858        CmndServ() : DimCommand("TEST/CMND","C"),
    59                                  servstr("TEST/STRVAL","empty") {};
     59                                 servstr("TEST/STRVAL",(char *)"empty") {};
    6060/*
    6161        void handleIt()
     
    8888
    8989        abc = new DimService("TEST/INTVAL_CONST",(int &)ival);
     90        if(abc){}
    9091}
    9192
     
    9596
    9697        abc = new DimService("TEST/STRINGVAL_CONST",(char *)s1.c_str());
     98        if(abc){}
    9799}
    98100
     
    136138
    137139        DimServer::start("TEST");
    138         extraDns = DimUtil::getEnvVar("EXTRA_DNS_NODE");
     140        extraDns = DimUtil::getEnvVar((char *)"EXTRA_DNS_NODE");
    139141        if(extraDns)
    140                 newDns = new DimServerDns(extraDns, 0, "new_TEST");
     142                newDns = new DimServerDns(extraDns, 0, (char *)"new_TEST");
    141143
    142144/*
     
    163165        CmndServ cmdsvr;
    164166
    165         testServ = new ServWithHandler("MY_NEW_TEST_SERVICE_WITH_HANDLER");
     167        testServ = new ServWithHandler((char *)"MY_NEW_TEST_SERVICE_WITH_HANDLER");
     168        if(testServ){}
    166169
    167170//      farr[0] = 1.2;
Note: See TracChangeset for help on using the changeset viewer.