summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/b_exit.c5
-rw-r--r--src/b_exit.h8
2 files changed, 5 insertions, 8 deletions
diff --git a/src/b_exit.c b/src/b_exit.c
index cb8988f..3aef1c1 100644
--- a/src/b_exit.c
+++ b/src/b_exit.c
@@ -21,9 +21,7 @@
#include "s_struct.h"
#include "u_utils.h"
-uint8_t
- b_exit(char *args[],
- t_msh *msh)
+uint8_t b_exit(char *args[], t_msh *msh)
{
uint8_t ret;
const uint64_t argc = u_builtins_get_argc((const char**)args);
@@ -36,7 +34,6 @@ uint8_t
if (argc == 1)
{
ret = ft_atoi(args[0]);
- /* TODO: non numeric args[0] */
}
else
ret = msh->ret;
diff --git a/src/b_exit.h b/src/b_exit.h
index 1c6ec05..47006cc 100644
--- a/src/b_exit.h
+++ b/src/b_exit.h
@@ -10,12 +10,12 @@
/* */
/* ************************************************************************** */
-#ifndef B_EXIT_H
-#define B_EXIT_H
+#ifndef FT_B_EXIT_H
+# define FT_B_EXIT_H
-#include <stdint.h>
+# include <stdint.h>
-#include "s_struct.h"
+# include "s_struct.h"
uint8_t b_exit(char *args[], t_msh *msh);