diff options
author | ache <ache@FreeBSD.org> | 2007-05-01 16:02:44 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2007-05-01 16:02:44 +0000 |
commit | 6ccaf050cc62bc9d81ac3acb71ce640739caa0f7 (patch) | |
tree | e3e0b3658b8df3a905b3117d8535bb15f42c9e80 /usr.sbin/sade | |
parent | 61e9800ad7707590037d6868c703475f36cf7058 (diff) | |
download | FreeBSD-src-6ccaf050cc62bc9d81ac3acb71ce640739caa0f7.zip FreeBSD-src-6ccaf050cc62bc9d81ac3acb71ce640739caa0f7.tar.gz |
Back out all POSIXified *env() changes.
Not because I admit they are technically wrong and not because of bug
reports (I receive nothing). But because I surprisingly meets so
strong opposition and resistance so lost any desire to continue that.
Anyone who interested in POSIX can dig out what changes and how
through cvs diffs.
Diffstat (limited to 'usr.sbin/sade')
-rw-r--r-- | usr.sbin/sade/main.c | 2 | ||||
-rw-r--r-- | usr.sbin/sade/variable.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/sade/main.c b/usr.sbin/sade/main.c index 65e14a9..45ed1bb 100644 --- a/usr.sbin/sade/main.c +++ b/usr.sbin/sade/main.c @@ -56,7 +56,7 @@ main(int argc, char **argv) /* XXX */ char *p = getenv("TERM"); if (p && strcmp(p, "cons25") == 0) - (void)putenv(strdup("TERM=cons25w")); + putenv("TERM=cons25w"); } #endif diff --git a/usr.sbin/sade/variable.c b/usr.sbin/sade/variable.c index f09819e..bbbc2d2 100644 --- a/usr.sbin/sade/variable.c +++ b/usr.sbin/sade/variable.c @@ -307,7 +307,7 @@ pvariable_set(char *var) if (index(var, '=') == NULL) msgFatal("Invalid variable format: %s", var); strlcat(tmp, var, 1024); - (void)putenv(strdup(tmp)); + putenv(tmp); } char * |