More consistent variable naming.

This commit is contained in:
Guus Sliepen 2007-05-18 11:19:31 +00:00
parent 29fbce4497
commit e37ef57a95
8 changed files with 48 additions and 48 deletions

View file

@ -114,11 +114,11 @@ void close_device(void) {
}
bool read_packet(vpn_packet_t *packet) {
int lenin;
int inlen;
cp();
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;
@ -140,7 +140,7 @@ bool read_packet(vpn_packet_t *packet) {
return false;
}
packet->len = lenin + 14;
packet->len = inlen + 14;
device_total_in += packet->len;