summaryrefslogtreecommitdiffstats
path: root/src/b_export.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-08-07 15:09:31 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-08-07 15:09:31 +0200
commit85e83d4179e0a0e4d7c07aff750cab9478e461b9 (patch)
tree1eb28924de62c9348259b9012b8606d67008ad83 /src/b_export.c
parentOld style rewrite in progress (diff)
download42-minishell-85e83d4179e0a0e4d7c07aff750cab9478e461b9.tar.gz
42-minishell-85e83d4179e0a0e4d7c07aff750cab9478e461b9.tar.bz2
42-minishell-85e83d4179e0a0e4d7c07aff750cab9478e461b9.tar.xz
42-minishell-85e83d4179e0a0e4d7c07aff750cab9478e461b9.tar.zst
42-minishell-85e83d4179e0a0e4d7c07aff750cab9478e461b9.zip
Forked builtins
Diffstat (limited to 'src/b_export.c')
-rw-r--r--src/b_export.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/b_export.c b/src/b_export.c
index 4e3b4c7..0b5dbf6 100644
--- a/src/b_export.c
+++ b/src/b_export.c
@@ -25,7 +25,7 @@
#include "u_utils.h"
#include "u_vars.h"
-static t_bool
+t_bool
check_valid_identifier(const char arg[])
{
char *ptr;
@@ -38,7 +38,7 @@ static t_bool
return (FALSE);
}
-static t_bool
+t_bool
check_equals(const char *arg)
{
char *ptr;
@@ -55,7 +55,7 @@ static t_bool
return (FALSE);
}
-static void
+void
b_add_to_env_from_globals(const char varname[],
const char var[],
t_msh *msh)
@@ -95,9 +95,7 @@ uint8_t
uint8_t r;
if (args[0] == NULL)
- {
return (b_env(NULL, msh));
- }
r = 0;
ptr = args;
while (*ptr != NULL)