diff options
| author | B. Watson <urchlay@slackware.uk> | 2025-11-18 06:57:14 -0500 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2025-11-18 06:57:14 -0500 |
| commit | ebfad791508af77f7f8e942c88a6f5dc88bd6d41 (patch) | |
| tree | c4414ef1e0fccc49c261dd5305dcdfb2feb53efc /src/unalf.c | |
| parent | 7ec4a5150710643e99f982b5a82f8aeb49302d81 (diff) | |
| download | unalf-ebfad791508af77f7f8e942c88a6f5dc88bd6d41.tar.gz | |
Improve alfsum usage a bit.
Diffstat (limited to 'src/unalf.c')
| -rw-r--r-- | src/unalf.c | 18 |
1 files changed, 1 insertions, 17 deletions
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 <stdio.h> -#include <unistd.h> -#include <stdlib.h> -#include <string.h> -#include <errno.h> -#include <sys/stat.h> -#include <f65.h> #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 */ |
