aboutsummaryrefslogtreecommitdiffstats
path: root/sercp.c
diff options
context:
space:
mode:
authorPavel Vymetálek <pavel@vym.cz>2019-03-19 16:10:31 +0100
committerPavel Vymetálek <pavel@vym.cz>2019-03-19 16:10:31 +0100
commit2d5fd6762eb110f537e3bb04cb632b1885956216 (patch)
treee5f001d5bc160525081a8c951fb7fc5d73af8b14 /sercp.c
parentb7d59dfb103014839518f8a7eaabffed9f572af3 (diff)
downloadsercp-pc-2d5fd6762eb110f537e3bb04cb632b1885956216.tar.gz
Update TODO, fixed compile-time warningsv0.2.3
Diffstat (limited to 'sercp.c')
-rw-r--r--sercp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sercp.c b/sercp.c
index 0e5d1dd..1f4118b 100644
--- a/sercp.c
+++ b/sercp.c
@@ -57,7 +57,7 @@
#define true 1
#define TRUE 1
-const char* _version = "v0.2";
+const char* _version = "v0.2.3";
// SERIAL
FILE *tapout_fd = NULL;
int is_outfile = 0;
@@ -376,8 +376,8 @@ void sercpRecv(void) {
uint32_t recv_length = 0; // zatim prijatych dat ze souboru
#ifndef __WIN32
int result;
- int _err;
-#endif
+// int _err;
+ #endif
FILEINFO *p_fileinfo = &fileinfo;
unsigned char *p_buff = buff;
tapout_fd = NULL;
@@ -426,7 +426,7 @@ void sercpRecv(void) {
exit (EXIT_FAILURE);
#else
- _err = errno;
+// _err = errno;
err (1, "can't open output file");
#endif
}