Add streq() and start finding places it fixes warnings.

Some type fixes from Michael Allison.
This commit is contained in:
nhkeni
2022-03-16 18:50:17 -04:00
parent dc72e07a2b
commit 7f484815e5
8 changed files with 42 additions and 19 deletions

View File

@@ -158,7 +158,7 @@ dupstr_n(const char *string, unsigned int *lenout)
if(len >= LARGEST_INT)
panic("string too long");
*lenout = (unsigned int) len;
return strcpy((char *) alloc((unsigned)len + 1), string);
return strcpy((char *) alloc(len + 1), string);
}
/*alloc.c*/