summaryrefslogtreecommitdiff
path: root/src/env.c
diff options
context:
space:
mode:
authorJannis Hoffmann <jannis@fehcom.de>2024-07-09 15:50:21 +0200
committerJannis Hoffmann <jannis@fehcom.de>2024-07-09 15:50:21 +0200
commit795ffc5e62e8ba383575dbcd9943a580d4bd3358 (patch)
treec128889056202b255e2f22afeb7717894d350862 /src/env.c
parent5fadc0cbb8577c61d66bd6f19ceaf0507c11e23b (diff)
formatting changes
Manual format adjustments. Comment adjustments. Remove usage of the register keyword.
Diffstat (limited to 'src/env.c')
-rw-r--r--src/env.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/env.c b/src/env.c
index 7f4afe5..4d7d2aa 100644
--- a/src/env.c
+++ b/src/env.c
@@ -4,10 +4,10 @@
#include "str.h"
/**
- @file env.c
- @author djb
- @source ucspi-tcp
- @brief setting up environment after fork
+ @file env.c
+ @author djb
+ @source ucspi-tcp
+ @brief setting up environment after fork
*/
extern /*@null@*/ char *env_get(char *s)
@@ -111,7 +111,7 @@ int env_put(char *name, char *value)
return 1;
}
-int env_init()
+int env_init(void)
{
char **newenviron;
int i;
@@ -146,6 +146,7 @@ void env_clear()
else
environ = &null;
}
+
extern char *env_pick()
{
return environ[0];