Bläddra i källkod

cmUdpNet.h/c : Changed argv[] in cmUdpNetTest() from char* to const char*.

master
Kevin Larke 10 år sedan
förälder
incheckning
1cd2969f6d
2 ändrade filer med 3 tillägg och 3 borttagningar
  1. 2
    2
      cmUdpNet.c
  2. 1
    1
      cmUdpNet.h

+ 2
- 2
cmUdpNet.c Visa fil

@@ -592,7 +592,7 @@ void _cmUdpNetTestCb2( void* cbArg, cmUdpNetH_t h, const char* data, unsigned da
592 592
 }
593 593
 
594 594
 
595
-const cmChar_t* _cmUdpNetTestGetOpt( int argc, char* argv[], const char* opt )
595
+const cmChar_t* _cmUdpNetTestGetOpt( int argc, const char* argv[], const char* opt )
596 596
 {
597 597
   unsigned i;
598 598
   for(i=0; i<argc; ++i)
@@ -602,7 +602,7 @@ const cmChar_t* _cmUdpNetTestGetOpt( int argc, char* argv[], const char* opt )
602 602
   return NULL;
603 603
 }
604 604
 
605
-cmRC_t cmUdpNetTest( cmCtx_t* ctx, int argc, char* argv[] )
605
+cmRC_t cmUdpNetTest( cmCtx_t* ctx, int argc, const char* argv[] )
606 606
 {
607 607
   cmUdpNetH_t     h          = cmUdpNetNullHandle;
608 608
   cmJsonH_t       jsH        = cmJsonNullHandle;

+ 1
- 1
cmUdpNet.h Visa fil

@@ -134,7 +134,7 @@ cmUnRC_t cmUdpNetReceive(  cmUdpNetH_t h, unsigned* msgCntPtr );
134 134
 cmUnRC_t cmUdpNetPrintNodes( cmUdpNetH_t h, cmRpt_t* rpt );
135 135
 void     cmUdpNetReport( cmUdpNetH_t h, cmRpt_t* rpt );
136 136
 
137
-cmRC_t cmUdpNetTest( cmCtx_t* ctx, int argc, char* argv[] );
137
+cmRC_t cmUdpNetTest( cmCtx_t* ctx, int argc, const char* argv[] );
138 138
 
139 139
 #ifdef __cplusplus
140 140
 }

Laddar…
Avbryt
Spara