diff options
author | Miguel Borges de Freitas <92enen@gmail.com> | 2024-10-10 09:46:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-10 09:46:26 +0100 |
commit | 741f0604fddf1a33aca00c88f6d148f3723c62e9 (patch) | |
tree | f8162e58adc4269929a9cb0cea116e01aef27757 | |
parent | ed8f18b779b28ee62e5e1154e839479680612700 (diff) | |
parent | 791318540b83ab5446ffcd6e597f744e4e28d0ad (diff) |
Merge pull request #25807 from enen92/udev_mount_anonymous
udev: namespace get_mountpoint call
-rw-r--r-- | xbmc/platform/linux/storage/UDevProvider.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xbmc/platform/linux/storage/UDevProvider.cpp b/xbmc/platform/linux/storage/UDevProvider.cpp index 7123e87a77..df5b9844c5 100644 --- a/xbmc/platform/linux/storage/UDevProvider.cpp +++ b/xbmc/platform/linux/storage/UDevProvider.cpp @@ -17,7 +17,9 @@ extern "C" { #include <poll.h> } -static const char *get_mountpoint(const char *devnode) +namespace +{ +const char* get_mountpoint(const char* devnode) { static char buf[4096]; const char *delim = " "; @@ -59,6 +61,7 @@ static const char *get_mountpoint(const char *devnode) fclose(fp); return mountpoint; } +} // namespace CUDevProvider::CUDevProvider() { |