Fix compiler warnings.
This commit is contained in:
parent
62ee9b776d
commit
0a84f9cb8f
2 changed files with 2 additions and 2 deletions
|
@ -210,7 +210,7 @@ static bool write_packet(vpn_packet_t *packet) {
|
|||
}
|
||||
break;
|
||||
case DEVICE_TYPE_ETHERTAP:
|
||||
*(short int *)(packet->data - 2) = packet->len;
|
||||
memcpy(packet->data - 2, &packet->len, 2);
|
||||
|
||||
if(write(device_fd, packet->data - 2, packet->len + 2) < 0) {
|
||||
logger(LOG_ERR, "Can't write to %s %s: %s", device_info, device,
|
||||
|
|
|
@ -352,7 +352,7 @@ static void do_outgoing_pipe(connection_t *c, char *command) {
|
|||
|
||||
void do_outgoing_connection(connection_t *c) {
|
||||
char *address, *port, *space;
|
||||
struct addrinfo *proxyai;
|
||||
struct addrinfo *proxyai = NULL;
|
||||
int result;
|
||||
|
||||
if(!c->outgoing) {
|
||||
|
|
Loading…
Reference in a new issue