From ebfad791508af77f7f8e942c88a6f5dc88bd6d41 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Tue, 18 Nov 2025 06:57:14 -0500 Subject: Improve alfsum usage a bit. --- src/unalf.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'src/unalf.c') diff --git a/src/unalf.c b/src/unalf.c index 7b29240..ee235b1 100644 --- a/src/unalf.c +++ b/src/unalf.c @@ -1,29 +1,13 @@ -#include -#include -#include -#include -#include -#include -#include #include "unalf.h" FILE *in_file, *out_file; -char *in_filename, *self; +char *in_filename; opts_t opts; const char *exclude_globs[MAX_EXCLUDES]; int exclude_count; char * const *include_globs; static void create_outdir(void); -static void set_self(char *argv0) { - char *p; - - self = argv0; - p = strrchr(self, '/'); - if(!p) p = strrchr(self, '\\'); // windows exe needs this - if(p) self = p + 1; -} - /* like "mkdir -p" (no error if dir already exists), followed by "cd" (which will error if the existing "directory" turns out to be a file or broken symlink */ -- cgit v1.2.3