summaryrefslogtreecommitdiff
path: root/src/libexecline/el_vardupl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libexecline/el_vardupl.c')
-rw-r--r--src/libexecline/el_vardupl.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/libexecline/el_vardupl.c b/src/libexecline/el_vardupl.c
index 9efd586..d6c7dbf 100644
--- a/src/libexecline/el_vardupl.c
+++ b/src/libexecline/el_vardupl.c
@@ -1,13 +1,12 @@
/* ISC license. */
-#include <sys/types.h>
-#include <skalibs/bytestr.h>
+#include <string.h>
#include <execline/execline.h>
int el_vardupl (char const *key, char const *s, size_t len)
{
size_t i = 0 ;
- for (; i < len ; i += str_len(s + i) + 1)
- if (!str_diff(key, s + i)) return 1 ;
+ for (; i < len ; i += strlen(s + i) + 1)
+ if (!strcmp(key, s + i)) return 1 ;
return 0 ;
}