aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2025-02-12 16:57:52 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2025-02-12 16:57:52 -0500
commitcc2ba28845ac69d1838830946263f6a77c783366 (patch)
tree7a185b1c706c0461d4d1c9f139053f6dc44f51dc
parent3746e6eec67e4e7a44fb7df78b8be15375448cd0 (diff)
downloadstasis-cc2ba28845ac69d1838830946263f6a77c783366.tar.gz
Remove redundant extern in test_environment.c
-rw-r--r--tests/test_environment.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_environment.c b/tests/test_environment.c
index 134d061..43c3672 100644
--- a/tests/test_environment.c
+++ b/tests/test_environment.c
@@ -1,6 +1,6 @@
#include "testing.h"
-extern char **environ;
+
void test_runtime_copy() {
RuntimeEnv *env = runtime_copy(environ);
@@ -27,7 +27,7 @@ void test_runtime_copy_empty() {
void test_runtime() {
RuntimeEnv *env = runtime_copy(environ);
runtime_set(env, "CUSTOM_KEY", "Very custom");
- ssize_t idx = -1;
+ ssize_t idx;
STASIS_ASSERT((idx = runtime_contains(env, "CUSTOM_KEY")) >= 0, "CUSTOM_KEY should exist in object");
STASIS_ASSERT(strcmp(strlist_item(env, idx), "CUSTOM_KEY=Very custom") == 0, "Incorrect index returned by runtime_contains");