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
No related branches found
No related tags found
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)
* to a value we may have made up.
* TODO: We can set stuff from the user term here...
*/
for (i = 0; i < (sizeof(term.c_cc) / sizeof(term.c_cc[0])); i++)
term.c_cc[i] = _POSIX_VDISABLE;
for (unsigned noti = 0; noti < (sizeof(term.c_cc) / sizeof(term.c_cc[0])); noti++)
term.c_cc[noti] = _POSIX_VDISABLE;
#ifdef VEOF
term.c_cc[VEOF] = CEOF;
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment