diff options
author | John Levon <john.levon@joyent.com> | 2019-09-04 06:01:25 -0700 |
---|---|---|
committer | John Levon <john.levon@joyent.com> | 2019-09-12 04:40:11 -0700 |
commit | ce115d25b7c5f8cff5a9444c4d0d1ea9d31c2056 (patch) | |
tree | 7a01d000c16bb1782f1bf2db41ad8ae5136f9057 /usr/src/cmd/ctfconvert/ctfconvert.c | |
parent | 8eb8717cc9dc99bdd784b74c994bea7ef5e60f92 (diff) | |
download | illumos-gate-ce115d25b7c5f8cff5a9444c4d0d1ea9d31c2056.tar.gz |
11657 Remove old ctf tools
Reviewed by: Robert Mustacchi <rm@joyent.com>
Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/cmd/ctfconvert/ctfconvert.c')
-rw-r--r-- | usr/src/cmd/ctfconvert/ctfconvert.c | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/usr/src/cmd/ctfconvert/ctfconvert.c b/usr/src/cmd/ctfconvert/ctfconvert.c index 9c93da38f4..2633207693 100644 --- a/usr/src/cmd/ctfconvert/ctfconvert.c +++ b/usr/src/cmd/ctfconvert/ctfconvert.c @@ -10,7 +10,7 @@ */ /* - * Copyright (c) 2019, Joyent, Inc. + * Copyright 2019 Joyent, Inc. */ /* @@ -39,8 +39,6 @@ #define CTFCONVERT_DEFAULT_NTHREADS 4 -#define CTFCONVERT_ALTEXEC "CTFCONVERT_ALTEXEC" - static char *ctfconvert_progname; static void @@ -222,28 +220,6 @@ ctfconvert_fixup_genunix(ctf_file_t *fp) VERIFY(ctf_type_size(fp, cpuid) == sz); } -static void -ctfconvert_altexec(char **argv) -{ - const char *alt; - char *altexec; - - alt = getenv(CTFCONVERT_ALTEXEC); - if (alt == NULL || *alt == '\0') - return; - - altexec = strdup(alt); - if (altexec == NULL) - ctfconvert_fatal("failed to allocate memory for altexec\n"); - if (unsetenv(CTFCONVERT_ALTEXEC) != 0) - ctfconvert_fatal("failed to unset %s from environment: %s\n", - CTFCONVERT_ALTEXEC, strerror(errno)); - - (void) execv(altexec, argv); - ctfconvert_fatal("failed to execute alternate program %s: %s", - altexec, strerror(errno)); -} - int main(int argc, char *argv[]) { @@ -264,8 +240,6 @@ main(int argc, char *argv[]) ctfconvert_progname = basename(argv[0]); - ctfconvert_altexec(argv); - while ((c = getopt(argc, argv, ":ij:kl:L:mo:X")) != -1) { switch (c) { case 'i': |