]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
dirent-util: follow our coding style
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 10 Jun 2025 03:56:15 +0000 (12:56 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 10 Jun 2025 03:57:01 +0000 (12:57 +0900)
src/basic/dirent-util.c
src/basic/dirent-util.h

index 5dad9c203226fc585f2daddad436c849ccf6ad8c..2d0c10f6fef6384098da006e7c99db9be47e2caf 100644 (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 direntreaddir_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 direntreaddir_no_dot(DIR *d) {
         assert(d);
 
         for (;;) {
index 14fde59c992e463098a94b82ea20c9522c22563c..2f1df3cf66726aaa7d7a56ef69d3ec8b31c71aa6 100644 (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 direntreaddir_ensure_type(DIR *d);
+struct direntreaddir_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)) \