aboutsummaryrefslogtreecommitdiffstats
path: root/nihil/usage_error.ccm
diff options
context:
space:
mode:
Diffstat (limited to 'nihil/usage_error.ccm')
-rw-r--r--nihil/usage_error.ccm9
1 files changed, 4 insertions, 5 deletions
diff --git a/nihil/usage_error.ccm b/nihil/usage_error.ccm
index 41de29c..abbd6f0 100644
--- a/nihil/usage_error.ccm
+++ b/nihil/usage_error.ccm
@@ -4,20 +4,19 @@
module;
-#include <format>
-#include <utility>
+#include <string>
export module nihil:usage_error;
-import :generic_error;
+import :error;
namespace nihil {
/*
* Exception thrown to indicate invalid command-line arguments.
*/
-export struct usage_error : generic_error {
- usage_error(std::string what) : generic_error(std::move(what)) {}
+export struct usage_error : error {
+ usage_error(std::string_view what) : error(what) {}
};
} // namespace nihil
t.c?h=lf/dev/bridge-pctrie&id=66bcf0b333e419ce3e5467a17ba80f104d5e8f96'>66bcf0b333e419ce3e5467a17ba80f104d5e8f96 (patch) tree9dbf9ac9857fba77f2a1e3745861bd8c654c4e4f /sys/netinet/sctp_output.c parent72851e8598bc1283efd02ecd2e0c2d49b4896f2e (diff)
Plug mbuf leaks in the SCTP output path in error cases.
Approved by: re (kib@) MFC after: 1 week CID: 1395307
Diffstat (limited to 'sys/netinet/sctp_output.c')