summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/b_env.c6
-rw-r--r--src/b_env.h8
2 files changed, 6 insertions, 8 deletions
diff --git a/src/b_env.c b/src/b_env.c
index 8f0a974..a19aadd 100644
--- a/src/b_env.c
+++ b/src/b_env.c
@@ -16,13 +16,11 @@
#include "f_fail.h"
#include "s_struct.h"
-uint8_t
- b_env(char *args[],
- t_msh *msh)
+uint8_t b_env(char *args[], t_msh *msh)
{
char **ptr;
- if (args && args[0])
+ if (args != NULL && args[0] != NULL)
{
f_fail_no_options("env", msh);
return (127);
diff --git a/src/b_env.h b/src/b_env.h
index 6ad2800..dabbdd7 100644
--- a/src/b_env.h
+++ b/src/b_env.h
@@ -10,12 +10,12 @@
/* */
/* ************************************************************************** */
-#ifndef B_ENV_H
-#define B_ENV_H
+#ifndef FT_B_ENV_H
+# define FT_B_ENV_H
-#include <stdint.h>
+# include <stdint.h>
-#include "s_struct.h"
+# include "s_struct.h"
uint8_t b_env(char *args[], t_msh *msh);