diff options
author | default <nobody@localhost> | 2023-01-28 17:49:02 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2023-01-28 17:49:02 +0100 |
commit | 876bebd9ac904ca930117237edaf8c3dcae7a922 (patch) | |
tree | 7e91e26c49e18fd80c7de93ff275ffce83fb14df /xs_glob.h | |
parent | 5163f93c028bead0bd6d84f75b5df33c41973aba (diff) |
Backport from xs.
Diffstat (limited to 'xs_glob.h')
-rw-r--r-- | xs_glob.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |