diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2011-04-30 18:49:39 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2011-04-30 18:49:39 +0000 |
commit | 7244cb7d82033edf59cdede5228789c4e4e9f7a6 (patch) | |
tree | 9e8ef16c799a6a2b5b0e7b3bf599312f5630a33b /usr.sbin/pppd/main.c | |
parent | 74b2bd957ca9cf3c93a789112e9a6acd16dad7d5 (diff) |
Remove some unused code, from Michael W Bombardieri. ok yasuoka
Diffstat (limited to 'usr.sbin/pppd/main.c')
-rw-r--r-- | usr.sbin/pppd/main.c | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/usr.sbin/pppd/main.c b/usr.sbin/pppd/main.c index 55290d782db..6dd56bede14 100644 --- a/usr.sbin/pppd/main.c +++ b/usr.sbin/pppd/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.48 2009/10/27 23:59:53 deraadt Exp $ */ +/* $OpenBSD: main.c,v 1.49 2011/04/30 18:49:38 nicm Exp $ */ /* * main.c - Point-to-Point Protocol main module @@ -1669,27 +1669,3 @@ script_setenv(var, value) script_env[i] = newstring; script_env[i+1] = 0; } - -/* - * script_unsetenv - remove a variable from the environment - * for scripts. - */ -void -script_unsetenv(var) - char *var; -{ - int vl = strlen(var); - int i; - char *p; - - if (script_env == 0) - return; - for (i = 0; (p = script_env[i]) != 0; ++i) { - if (strncmp(p, var, vl) == 0 && p[vl] == '=') { - free(p); - while ((script_env[i] = script_env[i+1]) != 0) - ++i; - break; - } - } -} |