summaryrefslogtreecommitdiffstats
path: root/include/raul/Process.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-06-28 22:57:52 -0400
committerDavid Robillard <d@drobilla.net>2022-06-28 23:10:11 -0400
commitcde85f3f450f7c3f12e1f7c4a70cb374e4756319 (patch)
treea7c29860f761f0876d753c85856f88d8993f6643 /include/raul/Process.hpp
parent5f12264cddac578f74dee7e12411c57eed4d3eae (diff)
downloadraul-cde85f3f450f7c3f12e1f7c4a70cb374e4756319.tar.gz
raul-cde85f3f450f7c3f12e1f7c4a70cb374e4756319.tar.bz2
raul-cde85f3f450f7c3f12e1f7c4a70cb374e4756319.zip
Remove redundant `struct` keys
Because this is C++ code, GCC 12 says things like: Socket.hpp:166:24: error: redundant class-key ‘struct’ in reference to ‘struct sockaddr_un’ [-Werror=redundant-tags]
Diffstat (limited to 'include/raul/Process.hpp')
-rw-r--r--include/raul/Process.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/raul/Process.hpp b/include/raul/Process.hpp
index 085ed8b..d3ef0a9 100644
--- a/include/raul/Process.hpp
+++ b/include/raul/Process.hpp
@@ -46,7 +46,7 @@ public:
// (in child)
// Close all nonstandard file descriptors
- struct rlimit max_fds {};
+ rlimit max_fds {};
getrlimit(RLIMIT_NOFILE, &max_fds);
for (rlim_t fd = 3; fd < max_fds.rlim_cur; ++fd) {
close(static_cast<int>(fd));