summaryrefslogtreecommitdiffstats
path: root/src/u_vars_next.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/u_vars_next.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/u_vars_next.c b/src/u_vars_next.c
index 0e3c33d..05538d4 100644
--- a/src/u_vars_next.c
+++ b/src/u_vars_next.c
@@ -11,7 +11,6 @@
/* ************************************************************************** */
#include <libft.h>
-#include <stdint.h>
#include <stdlib.h>
#ifdef __linux__
# include <linux/limits.h>
@@ -25,10 +24,10 @@
#include "u_parse.h"
#include "u_utils.h"
-static int64_t u_get_env_var_line(const char varname[], t_msh *msh)
+static long u_get_env_var_line(const char varname[], t_msh *msh)
{
char **env_dup;
- int64_t i;
+ long i;
env_dup = u_get_env_var_names(msh);
i = 0;
@@ -85,7 +84,7 @@ void u_subst_var_value(const char varname[],
t_msh *msh)
{
char new_line_fmt[ARG_MAX];
- int64_t env_line;
+ long env_line;
if ((env_line = u_get_env_var_line(varname + 1, msh)) > -1)
{