Skip to content

Commit 8687ced

Browse files
Use dev_t instead of __dev_t
__dev_t is leaked by glibc. dev_t seems to be the standard version. That's also the one exported by linux headers. https://elixir.bootlin.com/linux/latest/source/include/linux/types.h#L16
1 parent 1390c46 commit 8687ced

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/anbox/container/lxc_container.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@ constexpr const char *lxc_config_log_file_key{"lxc.log.file"};
8080
constexpr const char *lxc_config_apparmor_profile_key{"lxc.apparmor.profile"};
8181
#endif
8282

83-
constexpr int device_major(__dev_t dev) {
83+
constexpr int device_major(dev_t dev) {
8484
return int(((dev >> 8) & 0xfff) | ((dev >> 32) & (0xfffff000)));
8585
}
8686

87-
constexpr int device_minor(__dev_t dev) {
87+
constexpr int device_minor(dev_t dev) {
8888
return int((dev & 0xff) | ((dev >> 12) & (0xffffff00)));
8989
}
9090
} // namespace

0 commit comments

Comments
 (0)