From 37ef19cdfcf5186746b24db546d316d1186e36c3 Mon Sep 17 00:00:00 2001 From: william Date: Sat, 18 Mar 2017 23:59:12 +0100 Subject: [PATCH] rectif de variables sous linux --- 42sh/src/builtin/builtin_export.c | 2 -- 42sh/src/completion/c_match_glob.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/42sh/src/builtin/builtin_export.c b/42sh/src/builtin/builtin_export.c index 0178c03e..af4d6a5e 100644 --- a/42sh/src/builtin/builtin_export.c +++ b/42sh/src/builtin/builtin_export.c @@ -40,9 +40,7 @@ int builtin_export( { char *equal; t_btexport data; - int i; - i = 0; (void)envp; (void)path; data.flag = 0; diff --git a/42sh/src/completion/c_match_glob.c b/42sh/src/completion/c_match_glob.c index 961d4e25..6970b95c 100644 --- a/42sh/src/completion/c_match_glob.c +++ b/42sh/src/completion/c_match_glob.c @@ -92,7 +92,7 @@ int c_glob_matching(void) char **ss_glob; unsigned char *glob_echap; char *str; - size_t pos; + long pos; str = data_singleton()->line.input; if ((pos = c_glob_pos(NULL, 0)) == -1)