X-Git-Url: http://git.meshlink.io/?p=meshlink;a=blobdiff_plain;f=src%2Fsolaris%2Fdevice.c;h=eac267ad8b1603c53d5038be713764de15b434cc;hp=0dfffb1b73fd0ae4a6e44f2a1e13f8f4dca6ba8c;hb=33f241d97852d7a171f1aaf1bda7f66356ff889e;hpb=4b3fd94b1cc79c24c4092b6b10ed4627a2648d26 diff --git a/src/solaris/device.c b/src/solaris/device.c index 0dfffb1b..eac267ad 100644 --- a/src/solaris/device.c +++ b/src/solaris/device.c @@ -115,9 +115,9 @@ void close_device(void) { } bool read_packet(vpn_packet_t *packet) { - int lenin; + int inlen; - if((lenin = read(device_fd, packet->data + 14, MTU - 14)) <= 0) { + if((inlen = read(device_fd, packet->data + 14, MTU - 14)) <= 0) { logger(LOG_ERR, "Error while reading from %s %s: %s", device_info, device, strerror(errno)); return false; @@ -139,7 +139,7 @@ bool read_packet(vpn_packet_t *packet) { return false; } - packet->len = lenin + 14; + packet->len = inlen + 14; device_total_in += packet->len;