mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
dirent-util: follow our coding style
This commit is contained in:
@@ -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 (;;) {
|
||||
|
||||
@@ -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)) \
|
||||
|
||||
Reference in New Issue
Block a user