From: Daan De Meyer Date: Wed, 21 May 2025 11:24:22 +0000 (+0200) Subject: stat-util: Use typeof_field() in one more place X-Git-Tag: v258-rc1~555^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44599b20bc3ef6cba5341a8ec62273a8464ab9d9;p=thirdparty%2Fsystemd.git stat-util: Use typeof_field() in one more place --- diff --git a/src/basic/stat-util.h b/src/basic/stat-util.h index e4fd4221390..2c5f7b9e93a 100644 --- a/src/basic/stat-util.h +++ b/src/basic/stat-util.h @@ -57,7 +57,7 @@ static inline int fd_inode_same(int fda, int fdb) { /* The .f_type field of struct statfs is really weird defined on * different archs. Let's give its type a name. */ -typedef typeof(((struct statfs*)NULL)->f_type) statfs_f_type_t; +typedef typeof_field(struct statfs, f_type) statfs_f_type_t; bool is_fs_type(const struct statfs *s, statfs_f_type_t magic_value) _pure_; int is_fs_type_at(int dir_fd, const char *path, statfs_f_type_t magic_value);