[FIX] Make codebase *slightly* NetBSD-friendly

I need to make it so that NetBSD targets get their own
correctness/build checks in CI. I also had to do some hacks with
Cytoplasm, will make a PR for those soon.
This commit is contained in:
LDA 2024-10-22 10:21:54 +02:00
commit b0cf0961a3
13 changed files with 35 additions and 25 deletions

View file

@ -53,7 +53,7 @@ CommandParse(char *cmd)
switch (state)
{
case STATE_WHITE:
if (!isblank(c))
if (!isblank((int) c))
{
state = STATE_NAME;
namestart = cur;
@ -84,7 +84,7 @@ CommandParse(char *cmd)
{
char c = *cur;
char cb[2] = { c, '\0' };
if ((type && c == char_type) || (!type && isblank(c)))
if ((type && c == char_type) || (!type && isblank((int) c)))
{
break;
}