From 5bedb5dc5e7772a834da0694ecb2d78d66e9ca54 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 13 Apr 2021 20:30:17 +0000 Subject: [PATCH] Tweak --- .gitignore | 0 Makefile | 0 Makefile.musl | 0 README.txt | 0 examples/functions.ss | 0 examples/net-listen.ss | 0 examples/net-toss.ss | 0 examples/webserver.ss | 0 misc/sslogo.png | Bin src/compression.c | 0 src/enc.c | 0 src/inc/compression.h | 0 src/inc/config.h | 0 src/inc/deps.h | 0 src/inc/enc.h | 0 src/inc/inset.h | 0 src/inc/lexer.h | 0 src/inc/math.h | 0 src/inc/md5.h | 0 src/inc/network.h | 0 src/inc/pipe.h | 0 src/inc/sbyteswap.h | 0 src/inc/search.h | 0 src/inc/tar.h | 0 src/inc/util.h | 0 src/inc/vars.h | 0 src/inset.c | 0 src/lexer.c | 6 +++--- src/main.c | 0 src/math.c | 0 src/md5.c | 0 src/network.c | 0 src/pipe.c | 0 src/search.c | 0 src/tar.c | 2 -- src/util.c | 0 src/vars.c | 0 37 files changed, 3 insertions(+), 5 deletions(-) mode change 100644 => 100755 .gitignore mode change 100644 => 100755 Makefile mode change 100644 => 100755 Makefile.musl mode change 100644 => 100755 README.txt mode change 100644 => 100755 examples/functions.ss mode change 100644 => 100755 examples/net-listen.ss mode change 100644 => 100755 examples/net-toss.ss mode change 100644 => 100755 examples/webserver.ss mode change 100644 => 100755 misc/sslogo.png mode change 100644 => 100755 src/compression.c mode change 100644 => 100755 src/enc.c mode change 100644 => 100755 src/inc/compression.h mode change 100644 => 100755 src/inc/config.h mode change 100644 => 100755 src/inc/deps.h mode change 100644 => 100755 src/inc/enc.h mode change 100644 => 100755 src/inc/inset.h mode change 100644 => 100755 src/inc/lexer.h mode change 100644 => 100755 src/inc/math.h mode change 100644 => 100755 src/inc/md5.h mode change 100644 => 100755 src/inc/network.h mode change 100644 => 100755 src/inc/pipe.h mode change 100644 => 100755 src/inc/sbyteswap.h mode change 100644 => 100755 src/inc/search.h mode change 100644 => 100755 src/inc/tar.h mode change 100644 => 100755 src/inc/util.h mode change 100644 => 100755 src/inc/vars.h mode change 100644 => 100755 src/inset.c mode change 100644 => 100755 src/lexer.c mode change 100644 => 100755 src/main.c mode change 100644 => 100755 src/math.c mode change 100644 => 100755 src/md5.c mode change 100644 => 100755 src/network.c mode change 100644 => 100755 src/pipe.c mode change 100644 => 100755 src/search.c mode change 100644 => 100755 src/tar.c mode change 100644 => 100755 src/util.c mode change 100644 => 100755 src/vars.c diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/Makefile b/Makefile old mode 100644 new mode 100755 diff --git a/Makefile.musl b/Makefile.musl old mode 100644 new mode 100755 diff --git a/README.txt b/README.txt old mode 100644 new mode 100755 diff --git a/examples/functions.ss b/examples/functions.ss old mode 100644 new mode 100755 diff --git a/examples/net-listen.ss b/examples/net-listen.ss old mode 100644 new mode 100755 diff --git a/examples/net-toss.ss b/examples/net-toss.ss old mode 100644 new mode 100755 diff --git a/examples/webserver.ss b/examples/webserver.ss old mode 100644 new mode 100755 diff --git a/misc/sslogo.png b/misc/sslogo.png old mode 100644 new mode 100755 diff --git a/src/compression.c b/src/compression.c old mode 100644 new mode 100755 diff --git a/src/enc.c b/src/enc.c old mode 100644 new mode 100755 diff --git a/src/inc/compression.h b/src/inc/compression.h old mode 100644 new mode 100755 diff --git a/src/inc/config.h b/src/inc/config.h old mode 100644 new mode 100755 diff --git a/src/inc/deps.h b/src/inc/deps.h old mode 100644 new mode 100755 diff --git a/src/inc/enc.h b/src/inc/enc.h old mode 100644 new mode 100755 diff --git a/src/inc/inset.h b/src/inc/inset.h old mode 100644 new mode 100755 diff --git a/src/inc/lexer.h b/src/inc/lexer.h old mode 100644 new mode 100755 diff --git a/src/inc/math.h b/src/inc/math.h old mode 100644 new mode 100755 diff --git a/src/inc/md5.h b/src/inc/md5.h old mode 100644 new mode 100755 diff --git a/src/inc/network.h b/src/inc/network.h old mode 100644 new mode 100755 diff --git a/src/inc/pipe.h b/src/inc/pipe.h old mode 100644 new mode 100755 diff --git a/src/inc/sbyteswap.h b/src/inc/sbyteswap.h old mode 100644 new mode 100755 diff --git a/src/inc/search.h b/src/inc/search.h old mode 100644 new mode 100755 diff --git a/src/inc/tar.h b/src/inc/tar.h old mode 100644 new mode 100755 diff --git a/src/inc/util.h b/src/inc/util.h old mode 100644 new mode 100755 diff --git a/src/inc/vars.h b/src/inc/vars.h old mode 100644 new mode 100755 diff --git a/src/inset.c b/src/inset.c old mode 100644 new mode 100755 diff --git a/src/lexer.c b/src/lexer.c old mode 100644 new mode 100755 index e1b61c3..c4609c5 --- a/src/lexer.c +++ b/src/lexer.c @@ -530,16 +530,16 @@ char *process_line(char *line) sprintf(comp_size, "%s", origsize); fclose(in); - for(uint32_t i = 1; i < 11; ++i) + for(uint32_t i = 1; i < 7; ++i) { uint32_t comp_return = ss_compress(filename, file_comp, i); uint32_t deco_return = ss_decompress(file_comp, filedecout); sprintf(retbuf, "ss: %s: compressed: %u -> %u", file_comp, deco_return, comp_return); - if(atoi(comp_size) < (int)comp_return && comp_return != 0 && deco_return != 0 && i != 1 && (int)deco_return == atoi(origsize)) + if(atoi(comp_size) < (int)comp_return && comp_return != 0 && deco_return != 0 && i != 1) break; sprintf(comp_size, "%u", comp_return); - printf("pass %u decompressed/compressed: %u/%u\n", i, deco_return, comp_return); + printf("pass %u decompressed/compressed: %u/%u\n", i, deco_return, comp_return); } // Remove the decompressed version for sanity check diff --git a/src/main.c b/src/main.c old mode 100644 new mode 100755 diff --git a/src/math.c b/src/math.c old mode 100644 new mode 100755 diff --git a/src/md5.c b/src/md5.c old mode 100644 new mode 100755 diff --git a/src/network.c b/src/network.c old mode 100644 new mode 100755 diff --git a/src/pipe.c b/src/pipe.c old mode 100644 new mode 100755 diff --git a/src/search.c b/src/search.c old mode 100644 new mode 100755 diff --git a/src/tar.c b/src/tar.c old mode 100644 new mode 100755 index e7b53e8..36c5863 --- a/src/tar.c +++ b/src/tar.c @@ -67,13 +67,11 @@ int tar_read(const int fd, struct tar_t ** archive, const char verbosity){ RC_ERROR("Unable to seek file: %s", strerror(rc)); } - /* if(*tar != (void *)0) { tar_free(*tar); *tar = (void *)0; } - */ break; } diff --git a/src/util.c b/src/util.c old mode 100644 new mode 100755 diff --git a/src/vars.c b/src/vars.c old mode 100644 new mode 100755