summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authorCoren[m] <Break@Ocean>2013-09-12 14:19:22 +0200
committerCoren[m] <Break@Ocean>2013-09-12 14:19:22 +0200
commit20f865521a6c3dafae85533a490c483621440e73 (patch)
tree3f37acf34dd3363440e208adcc3ff58c6e988b92 /testing
parentd017189bb6b0ed69b27d5a62879a29408180310a (diff)
nTox.c:
- correct a message who claims we're going to exit when we actually aren't - don't treat a failed close on reading the data file as failure of the reading
Diffstat (limited to 'testing')
-rw-r--r--testing/nTox.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/testing/nTox.c b/testing/nTox.c
index 74702697..9f6d8233 100644
--- a/testing/nTox.c
+++ b/testing/nTox.c
@@ -496,7 +496,7 @@ int load_data(Tox *m)
496 496
497 uint8_t data[size]; 497 uint8_t data[size];
498 if (fread(data, sizeof(uint8_t), size, data_file) != size) { 498 if (fread(data, sizeof(uint8_t), size, data_file) != size) {
499 fputs("[!] could not read data file! exiting...\n", stderr); 499 fputs("[!] could not read data file!\n", stderr);
500 return 0; 500 return 0;
501 } 501 }
502 502
@@ -504,7 +504,8 @@ int load_data(Tox *m)
504 504
505 if (fclose(data_file) < 0) { 505 if (fclose(data_file) < 0) {
506 perror("[!] fclose failed"); 506 perror("[!] fclose failed");
507 return 0; 507 /* we got it open and the expected data read... let it be ok */
508 /* return 0; */
508 } 509 }
509 510
510 return 1; 511 return 1;