diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-09-28 10:49:38 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-09-28 10:49:38 (GMT) |
commit | e7e27b6290efd36e92236eb6f46f4e00dc98e188 (patch) | |
tree | e240f25b360037743ccde571bf2a499d7d787e2b /win/tclWinSerial.c | |
parent | 69e29e6012ec91b1b686c8c246e123758a9f1104 (diff) | |
parent | 947369a720dc58ad94435918a85bee712448a48e (diff) | |
download | tcl-e7e27b6290efd36e92236eb6f46f4e00dc98e188.zip tcl-e7e27b6290efd36e92236eb6f46f4e00dc98e188.tar.gz tcl-e7e27b6290efd36e92236eb6f46f4e00dc98e188.tar.bz2 |
Merge 8.7
Diffstat (limited to 'win/tclWinSerial.c')
-rw-r--r-- | win/tclWinSerial.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/win/tclWinSerial.c b/win/tclWinSerial.c index d8106f4..aa87354 100644 --- a/win/tclWinSerial.c +++ b/win/tclWinSerial.c @@ -1826,7 +1826,7 @@ SerialSetOptionProc( */ if ((len > 4) && (strncmp(optionName, "-ttycontrol", len) == 0)) { - int i, result = TCL_OK; + int i, res = TCL_OK; if (Tcl_SplitList(interp, value, &argc, &argv) == TCL_ERROR) { return TCL_ERROR; @@ -1844,7 +1844,7 @@ SerialSetOptionProc( for (i = 0; i < argc - 1; i += 2) { if (Tcl_GetBoolean(interp, argv[i+1], &flag) == TCL_ERROR) { - result = TCL_ERROR; + res = TCL_ERROR; break; } if (strncasecmp(argv[i], "DTR", strlen(argv[i])) == 0) { @@ -1856,7 +1856,7 @@ SerialSetOptionProc( Tcl_SetErrorCode(interp, "TCL", "OPERATION", "FCONFIGURE", "TTY_SIGNAL", NULL); } - result = TCL_ERROR; + res = TCL_ERROR; break; } } else if (strncasecmp(argv[i], "RTS", strlen(argv[i])) == 0) { @@ -1868,7 +1868,7 @@ SerialSetOptionProc( Tcl_SetErrorCode(interp, "TCL", "OPERATION", "FCONFIGURE", "TTY_SIGNAL", NULL); } - result = TCL_ERROR; + res = TCL_ERROR; break; } } else if (strncasecmp(argv[i], "BREAK", strlen(argv[i])) == 0) { @@ -1880,7 +1880,7 @@ SerialSetOptionProc( Tcl_SetErrorCode(interp, "TCL", "OPERATION", "FCONFIGURE", "TTY_SIGNAL", NULL); } - result = TCL_ERROR; + res = TCL_ERROR; break; } } else { @@ -1891,13 +1891,13 @@ SerialSetOptionProc( Tcl_SetErrorCode(interp, "TCL", "VALUE", "TTY_SIGNAL", NULL); } - result = TCL_ERROR; + res = TCL_ERROR; break; } } Tcl_Free((void *)argv); - return result; + return res; } /* |