summaryrefslogtreecommitdiff
path: root/src/skaembutils/s6-ls.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-03-12 13:36:02 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-03-12 13:36:02 +0000
commit22d1a9da68a8ccd5c5835ec7b8268b5c31b07a44 (patch)
tree99fecd5c9329183584c92ab25ecec3a0d030ade5 /src/skaembutils/s6-ls.c
parent1b5312d5c01fd5e12b938cfe65cda562e822619d (diff)
downloads6-portable-utils-22d1a9da68a8ccd5c5835ec7b8268b5c31b07a44.tar.xz
Fix a few omissions2.2.0.0
Diffstat (limited to 'src/skaembutils/s6-ls.c')
-rw-r--r--src/skaembutils/s6-ls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/skaembutils/s6-ls.c b/src/skaembutils/s6-ls.c
index 369cede..fa5ed82 100644
--- a/src/skaembutils/s6-ls.c
+++ b/src/skaembutils/s6-ls.c
@@ -1,7 +1,7 @@
/* ISC license. */
+#include <string.h>
#include <skalibs/sgetopt.h>
-#include <skalibs/bytestr.h>
#include <skalibs/direntry.h>
#include <skalibs/buffer.h>
#include <skalibs/strerr2.h>
@@ -43,7 +43,7 @@ int main (int argc, char const *const *argv)
{
if (!all || !d->d_name[1] || ((d->d_name[1] == '.') && !d->d_name[2])) continue ;
}
- if (exclude && !str_diff(exclude, d->d_name)) continue ;
+ if (exclude && !strcmp(exclude, d->d_name)) continue ;
if ((buffer_puts(buffer_1, d->d_name) < 0)
|| (buffer_put(buffer_1, &delim, 1) < 0))
strerr_diefu1sys(111, "write to stdout") ;