Skip to content
Snippets Groups Projects
Commit 9db2d372 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Don't use i for loop index since it's signed.

parent 0e3c7134
Branches
Tags
No related merge requests found
Pipeline #5769 passed
...@@ -1582,8 +1582,8 @@ int sbbs_t::external(const char* cmdline, int mode, const char* startup_dir) ...@@ -1582,8 +1582,8 @@ int sbbs_t::external(const char* cmdline, int mode, const char* startup_dir)
* to a value we may have made up. * to a value we may have made up.
* TODO: We can set stuff from the user term here... * TODO: We can set stuff from the user term here...
*/ */
for (i = 0; i < (sizeof(term.c_cc) / sizeof(term.c_cc[0])); i++) for (unsigned noti = 0; noti < (sizeof(term.c_cc) / sizeof(term.c_cc[0])); noti++)
term.c_cc[i] = _POSIX_VDISABLE; term.c_cc[noti] = _POSIX_VDISABLE;
#ifdef VEOF #ifdef VEOF
term.c_cc[VEOF] = CEOF; term.c_cc[VEOF] = CEOF;
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment