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