diff options
author | Björn-Egil Dahlberg <[email protected]> | 2011-11-07 15:44:37 +0100 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2011-11-07 16:06:51 +0100 |
commit | 3a1e846e08b28fd38df5fa36c4b5ec13c420d1d3 (patch) | |
tree | e6c793da82dd7a87c20c84c00ab52ee48eaad0e0 /erts | |
parent | b37aca2a4ac3e79c39ab4dd588eda2b6bd77d311 (diff) | |
download | otp-3a1e846e08b28fd38df5fa36c4b5ec13c420d1d3.tar.gz otp-3a1e846e08b28fd38df5fa36c4b5ec13c420d1d3.tar.bz2 otp-3a1e846e08b28fd38df5fa36c4b5ec13c420d1d3.zip |
erts: Remove unused variable in ttsl_drv
Diffstat (limited to 'erts')
-rw-r--r-- | erts/emulator/drivers/unix/ttsl_drv.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/erts/emulator/drivers/unix/ttsl_drv.c b/erts/emulator/drivers/unix/ttsl_drv.c index d782b044a9..45d39a559f 100644 --- a/erts/emulator/drivers/unix/ttsl_drv.c +++ b/erts/emulator/drivers/unix/ttsl_drv.c @@ -242,7 +242,7 @@ static ErlDrvData ttysl_start(ErlDrvPort port, char* buf) #ifndef HAVE_TERMCAP return ERL_DRV_ERROR_GENERAL; #else - char *s, *t, c, *l; + char *s, *t, *l; int canon, echo, sig; /* Terminal characteristics */ int flag; extern int using_oldshell; /* set this to let the rest of erts know */ @@ -262,7 +262,6 @@ static ErlDrvData ttysl_start(ErlDrvPort port, char* buf) s++; /* Find end of this argument (start of next) and insert NUL. */ if ((t = strchr(s, ' '))) { - c = *t; *t = '\0'; } if ((flag = ((*s == '+') ? 1 : ((*s == '-') ? -1 : 0)))) { |