aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/env_universal_common.cpp
diff options
context:
space:
mode:
authorGravatar Kurtis Rader <krader@skepticism.us>2016-05-28 22:28:26 -0700
committerGravatar Kurtis Rader <krader@skepticism.us>2016-05-29 22:24:29 -0700
commit5bf1b0e5f500b6b99a866da32dd9002219cac6d6 (patch)
tree4622863e7f28ad7f840d6a7096057286aee4e750 /src/env_universal_common.cpp
parent3d19b549c8d9fc77597d0de95260e90f5dda2dae (diff)
fix random lint issues
This only eliminates errors reported by `make lint`. It shouldn't cause any functional changes. This change does remove several functions that are unused. It also removes the `desc_arr` variable which is both unused and out of date with reality.
Diffstat (limited to 'src/env_universal_common.cpp')
-rw-r--r--src/env_universal_common.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/env_universal_common.cpp b/src/env_universal_common.cpp
index bb5b759b..c1b7c46c 100644
--- a/src/env_universal_common.cpp
+++ b/src/env_universal_common.cpp
@@ -14,6 +14,7 @@
#include <sys/mman.h>
#include <sys/socket.h>
#include <sys/stat.h>
+#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#include <wchar.h>
@@ -311,7 +312,7 @@ void env_universal_t::set_internal(const wcstring &key, const wcstring &val, boo
}
void env_universal_t::set(const wcstring &key, const wcstring &val, bool exportv) {
- scoped_lock locker(lock);
+ scoped_lock locker(lock); //!OCLINT(side-effect)
this->set_internal(key, val, exportv, true /* overwrite */);
}
@@ -331,7 +332,7 @@ bool env_universal_t::remove(const wcstring &key) {
wcstring_list_t env_universal_t::get_names(bool show_exported, bool show_unexported) const {
wcstring_list_t result;
- scoped_lock locker(lock);
+ scoped_lock locker(lock); //!OCLINT(side-effect)
var_table_t::const_iterator iter;
for (iter = vars.begin(); iter != vars.end(); ++iter) {
const wcstring &key = iter->first;