summaryrefslogtreecommitdiff
path: root/usr/src/cmd/ctfconvert/ctfconvert.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd/ctfconvert/ctfconvert.c')
-rw-r--r--usr/src/cmd/ctfconvert/ctfconvert.c28
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':