summaryrefslogtreecommitdiffstats
path: root/src/b_sqb_file.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-10-27 19:59:20 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-10-27 19:59:20 +0100
commitc5aae008dee36276154882d8fd56c3bdeb473474 (patch)
treea40740914847ebf39a5f8cb3acf6a48c8b9d61ef /src/b_sqb_file.c
parentTODO update (diff)
download42-minishell-c5aae008dee36276154882d8fd56c3bdeb473474.tar.gz
42-minishell-c5aae008dee36276154882d8fd56c3bdeb473474.tar.bz2
42-minishell-c5aae008dee36276154882d8fd56c3bdeb473474.tar.xz
42-minishell-c5aae008dee36276154882d8fd56c3bdeb473474.tar.zst
42-minishell-c5aae008dee36276154882d8fd56c3bdeb473474.zip
Now norme
Diffstat (limited to '')
-rw-r--r--src/b_sqb_file.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/b_sqb_file.c b/src/b_sqb_file.c
index a853b81..836aa01 100644
--- a/src/b_sqb_file.c
+++ b/src/b_sqb_file.c
@@ -13,13 +13,12 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <libft.h>
-#include <stdint.h>
#include <fcntl.h>
#include <unistd.h>
#include "d_define.h"
-static t_bool b_file_tests(uint8_t id, const char path[], struct stat sb)
+static t_bool b_file_tests(unsigned char id, const char path[], struct stat sb)
{
if (id == B_ID_SQB_B && S_ISBLK(sb.st_mode) == 1)
return (TRUE);
@@ -47,7 +46,7 @@ static t_bool b_file_tests(uint8_t id, const char path[], struct stat sb)
return (FALSE);
}
-uint8_t b_sqb_file_tests(uint8_t id, char *argv[])
+unsigned char b_sqb_file_tests(unsigned char id, char *argv[])
{
struct stat sb;
@@ -64,7 +63,7 @@ uint8_t b_sqb_file_tests(uint8_t id, char *argv[])
return (1);
}
-static t_bool b_sqb_file_comp_tests(uint8_t id,
+static t_bool b_sqb_file_comp_tests(unsigned char id,
struct stat sb1,
struct stat sb2)
{
@@ -77,7 +76,7 @@ static t_bool b_sqb_file_comp_tests(uint8_t id,
return (FALSE);
}
-uint8_t b_sqb_double_file_tests(uint8_t id, char *argv[])
+unsigned char b_sqb_double_file_tests(unsigned char id, char *argv[])
{
struct stat sb[2];