From e599bba4216c0edb8cc8f40adad3a6dba88685f4 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Sat, 19 Sep 2009 09:47:30 +0300 Subject: Various changes. Separate a few reusable components from XZ Utils specific code. The reusable code is now in "tuklib" modules. A few more could be separated still, e.g. bswap.h. Fix some bugs in lzmainfo. Fix physmem and cpucores code on OS/2. Thanks to Elbert Pol for help. Add OpenVMS support into physmem. Add a few #ifdefs to ease building XZ Utils on OpenVMS. Thanks to Jouk Jansen for the original patch. --- src/xz/args.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/xz/args.c') diff --git a/src/xz/args.c b/src/xz/args.c index b50e28b7..b35a5b63 100644 --- a/src/xz/args.c +++ b/src/xz/args.c @@ -351,7 +351,7 @@ parse_real(args_info *args, int argc, char **argv) default: message_try_help(); - my_exit(E_ERROR); + tuklib_exit(E_ERROR, E_ERROR, false); } } @@ -449,18 +449,12 @@ args_parse(args_info *args, int argc, char **argv) // Check how we were called. { -#ifdef DOSLIKE - // We adjusted argv[0] in the beginning of main() so we don't - // need to do anything here. - const char *name = argv[0]; -#else // Remove the leading path name, if any. const char *name = strrchr(argv[0], '/'); if (name == NULL) name = argv[0]; else ++name; -#endif // NOTE: It's possible that name[0] is now '\0' if argv[0] // is weird, but it doesn't matter here. -- cgit v1.2.3