From: git Date: Sun, 15 Mar 2026 12:30:50 +0000 (-0400) Subject: remove typos X-Git-Url: https://git.datadissipation.net/?a=commitdiff_plain;h=437bd3a00bb36639581e0923cc1faab25476b992;p=ust.git remove typos --- diff --git a/ust.c b/ust.c index 9cb4053..392bc43 100644 --- a/ust.c +++ b/ust.c @@ -129,11 +129,11 @@ settermspd(unsigned int lispeed, unsigned int lospeed, struct TERMIOS_STRUCT *op #ifdef __linux__ optst->c_cflag &= ~CBAUD; optst->c_cflag |= BOTHER; - optst->c_ispeed = ispeed; - optst->c_ospeed = ospeed; + optst->c_ispeed = lispeed; + optst->c_ospeed = lospeed; #else - cfsetispeed(optst, ispeed); - cfsetospeed(optst, ospeed); + cfsetispeed(optst, lispeed); + cfsetospeed(optst, lospeed); #endif } @@ -877,7 +877,7 @@ main(int argc, char *argv[]) soft ^= 1; break; case 'd': tl = strtol(optarg, &endptr, 10); - if (errno != 0 || *endptr != '\0' || t < 0) { + if (errno != 0 || *endptr != '\0' || tl < 0) { fprintf(stderr, "%s: invalid character delay: %s\n", argv[0],optarg); goto ustusage; } else {