summaryrefslogtreecommitdiff
path: root/src/venus_gps.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/venus_gps.c')
-rw-r--r--src/venus_gps.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/venus_gps.c b/src/venus_gps.c
index 1136d07..28491f7 100644
--- a/src/venus_gps.c
+++ b/src/venus_gps.c
@@ -199,8 +199,8 @@ static int gps_to_udp_client(const char *host, int port)
udp_send_msgs(sd, tty);
+ venus_close(tty);
close(sd);
- close(tty);
}
}
@@ -229,8 +229,8 @@ static int gps_to_tcp_client(const char *host, int port)
exchange_data(sd, tty);
+ venus_close(tty);
close(sd);
- close(tty);
}
}
@@ -299,8 +299,8 @@ static int gps_to_tcp_server(int port)
exchange_data(sd, tty);
+ venus_close(tty);
close(sd);
- close(tty);
}
}
@@ -335,7 +335,7 @@ static int gps_to_file(const char *file)
exchange_data(fd, tty);
- close(tty);
+ venus_close(tty);
}
return -1;
@@ -383,7 +383,7 @@ int gps_to_serial(const char *port)
exchange_data(fd, tty);
- close(tty);
+ venus_close(tty);
}
return -1;
@@ -765,7 +765,7 @@ int main(int argc, char *argv[])
exit(1);
}
- close(tty);
+ venus_close(tty);
/*
* FIXME: Support more than one mode at a time