return endswith(de->d_name, suffix);
}
-struct dirent *readdir_ensure_type(DIR *d) {
+struct dirent* readdir_ensure_type(DIR *d) {
int r;
assert(d);
}
}
-struct dirent *readdir_no_dot(DIR *d) {
+struct dirent* readdir_no_dot(DIR *d) {
assert(d);
for (;;) {
bool dirent_is_file_with_suffix(const struct dirent *de, const char *suffix) _pure_;
int dirent_ensure_type(int dir_fd, struct dirent *de);
-struct dirent *readdir_ensure_type(DIR *d);
-struct dirent *readdir_no_dot(DIR *dirp);
+struct dirent* readdir_ensure_type(DIR *d);
+struct dirent* readdir_no_dot(DIR *dirp);
#define FOREACH_DIRENT_ALL(de, d, on_error) \
for (struct dirent *(de) = readdir_ensure_type(d);; (de) = readdir_ensure_type(d)) \