comparison tcp-accept.c @ 1123:d7b752525b91

buf_getstring and buf_putstring now use non-unsigned char*
author Matt Johnston <matt@ucc.asn.au>
date Thu, 04 Jun 2015 23:08:50 +0800
parents 2c646a65a1e3
children 888e3d17e962
comparison
equal deleted inserted replaced
1121:bb3a03feb31f 1123:d7b752525b91
92 } 92 }
93 93
94 if (addr == NULL) { 94 if (addr == NULL) {
95 addr = "localhost"; 95 addr = "localhost";
96 } 96 }
97 buf_putstring(ses.writepayload, (const unsigned char *)addr, strlen(addr)); 97 buf_putstring(ses.writepayload, addr, strlen(addr));
98 buf_putint(ses.writepayload, port); 98 buf_putint(ses.writepayload, port);
99 99
100 /* originator ip */ 100 /* originator ip */
101 buf_putstring(ses.writepayload, (const unsigned char *)ipstring, strlen(ipstring)); 101 buf_putstring(ses.writepayload, ipstring, strlen(ipstring));
102 /* originator port */ 102 /* originator port */
103 buf_putint(ses.writepayload, atol(portstring)); 103 buf_putint(ses.writepayload, atol(portstring));
104 104
105 encrypt_packet(); 105 encrypt_packet();
106 106