diff options
author | Jim Meyering <jim@meyering.net> | 1994-12-27 02:47:50 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1994-12-27 02:47:50 +0000 |
commit | 2ea2c7bf78c6f6614a88fe6a5deae2152900454a (patch) | |
tree | d1498d91cd29871611bceb6cd8e973d94956da6d /src | |
parent | b772193f4bc7fc2688b90033c89048cca93239ba (diff) | |
download | coreutils-2ea2c7bf78c6f6614a88fe6a5deae2152900454a.tar.xz |
[member]: Use strchr instead of index.
Diffstat (limited to 'src')
-rw-r--r-- | src/test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test.c b/src/test.c index 333850dde..3be1cb6ac 100644 --- a/src/test.c +++ b/src/test.c @@ -67,7 +67,7 @@ extern int errno; #endif /* !STREQ */ #if !defined (member) -# define member(c, s) ((c) ? (index ((s), (c)) ? 1 : 0) : 0) +# define member(c, s) ((c) ? (strchr ((s), (c)) ? 1 : 0) : 0) #endif /* !member */ extern gid_t getgid (), getegid (); |