diff options
Diffstat (limited to 'src/init/tar.c')
-rw-r--r-- | src/init/tar.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/init/tar.c b/src/init/tar.c index 24adfce..a2b03df 100644 --- a/src/init/tar.c +++ b/src/init/tar.c @@ -1,11 +1,10 @@ +#include <init/stdlib.h> #include <shared/syscalls.h> #include <stdint.h> extern int tty_fd; static int oct_parse(char *str, size_t len); -int memcmp(const void *s1, const void *s2, size_t n); // TODO move to a dedicated file - void tar_driver(void *base) { // iterate over all sectors, printing filenames @@ -30,14 +29,3 @@ static int oct_parse(char *str, size_t len) { } return res; } - -int memcmp(const void *s1, const void *s2, size_t n) { - const unsigned char *c1 = s1, *c2 = s2; - for (size_t i = 0; i < n; i++) { - if (c1[i] != c2[i]) { - if (c1[i] < c2[i]) return -1; - else return 1; - } - } - return 0; -} |