mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-28 07:58:00 -04:00
util: add streq() function and use in place of strcmp(...) == 0
This commit is contained in:
parent
44c0cf594b
commit
e0f3703ae6
16 changed files with 172 additions and 165 deletions
3
slave.c
3
slave.c
|
|
@ -21,6 +21,7 @@
|
|||
#include "macros.h"
|
||||
#include "terminal.h"
|
||||
#include "tokenize.h"
|
||||
#include "util.h"
|
||||
#include "xmalloc.h"
|
||||
|
||||
extern char **environ;
|
||||
|
|
@ -121,7 +122,7 @@ is_valid_shell(const char *shell)
|
|||
if (line[0] == '#')
|
||||
continue;
|
||||
|
||||
if (strcmp(line, shell) == 0) {
|
||||
if (streq(line, shell)) {
|
||||
fclose(f);
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue