summaryrefslogtreecommitdiff
path: root/xs_glob.h
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-01-28 17:49:02 +0100
committerdefault <nobody@localhost>2023-01-28 17:49:02 +0100
commit876bebd9ac904ca930117237edaf8c3dcae7a922 (patch)
tree7e91e26c49e18fd80c7de93ff275ffce83fb14df /xs_glob.h
parent5163f93c028bead0bd6d84f75b5df33c41973aba (diff)
Backport from xs.
Diffstat (limited to 'xs_glob.h')
-rw-r--r--xs_glob.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/xs_glob.h b/xs_glob.h
index 795abd9..2da3729 100644
--- a/xs_glob.h
+++ b/xs_glob.h
@@ -4,7 +4,7 @@
#define _XS_GLOB_H
-d_char *xs_glob_n(const char *spec, int basename, int reverse, int max);
+xs_list *xs_glob_n(const char *spec, int basename, int reverse, int max);
#define xs_glob(spec, basename, reverse) xs_glob_n(spec, basename, reverse, XS_ALL)
@@ -12,11 +12,11 @@ d_char *xs_glob_n(const char *spec, int basename, int reverse, int max);
#include <glob.h>
-d_char *xs_glob_n(const char *spec, int basename, int reverse, int max)
+xs_list *xs_glob_n(const char *spec, int basename, int reverse, int max)
/* does a globbing and returns the found files */
{
glob_t globbuf;
- d_char *list = xs_list_new();
+ xs_list *list = xs_list_new();
if (glob(spec, 0, NULL, &globbuf) == 0) {
int n;