aboutsummaryrefslogtreecommitdiff
path: root/goldfishterm
diff options
context:
space:
mode:
authorGravatar Benjamin Barenblat <bbarenblat@gmail.com>2021-12-26 15:25:03 -0500
committerGravatar Benjamin Barenblat <bbarenblat@gmail.com>2021-12-26 15:25:03 -0500
commit56f7d79efdc8ad26f5e8e5508eb616144f04fea3 (patch)
treec22c698ab91281f2b027e1570f1508eb94d44a7d /goldfishterm
parentb819388acc4faa46e296f4e1f173b2cf2be8799f (diff)
Throw errno failures with std::system_category
Diffstat (limited to 'goldfishterm')
-rw-r--r--goldfishterm/terminfo_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/goldfishterm/terminfo_test.cc b/goldfishterm/terminfo_test.cc
index c50cb90..6bb2652 100644
--- a/goldfishterm/terminfo_test.cc
+++ b/goldfishterm/terminfo_test.cc
@@ -42,7 +42,7 @@ using ::testing::Optional;
void SetEnv(const char* var, const char* val) {
if (setenv(var, val, /*overwrite=*/1)) {
- throw std::system_error(errno, std::generic_category(), "setenv");
+ throw std::system_error(errno, std::system_category(), "setenv");
}
}