Define streq macro in util.h and use it over strcmp in lprocess.c

This commit is contained in:
Jeremy Baxter 2023-07-01 09:53:43 +12:00
parent bcdb57b4dd
commit d1c7b71043
2 changed files with 3 additions and 1 deletions

View file

@ -135,7 +135,7 @@ strtosig(const char *sig)
int i;
for (i = 1; i <= SIGC; i++) {
if (strcmp(signals[i], sig) == 0) {
if (streq(signals[i], sig)) {
return i; /* valid signal found */
}
}