dirent-util: follow our coding style

This commit is contained in:
Yu Watanabe
2025-06-10 12:56:15 +09:00
parent be87572505
commit 58bb08be6d
2 changed files with 4 additions and 4 deletions

View File

@@ -62,7 +62,7 @@ bool dirent_is_file_with_suffix(const struct dirent *de, const char *suffix) {
return endswith(de->d_name, suffix);
}
struct dirent *readdir_ensure_type(DIR *d) {
struct dirent* readdir_ensure_type(DIR *d) {
int r;
assert(d);
@@ -89,7 +89,7 @@ struct dirent *readdir_ensure_type(DIR *d) {
}
}
struct dirent *readdir_no_dot(DIR *d) {
struct dirent* readdir_no_dot(DIR *d) {
assert(d);
for (;;) {

View File

@@ -10,8 +10,8 @@ bool dirent_is_file(const struct dirent *de) _pure_;
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)) \