summaryrefslogtreecommitdiffstats
path: root/src/b_sqb_file.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-30 18:12:09 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-30 18:12:09 +0200
commita3f86df5be799fa3dbde5edbcf81648b616f1beb (patch)
treeb0bded1a9de6abd2f4ba3dc4bc8ca06a81f991bf /src/b_sqb_file.c
parentNormed b_sqb_err (diff)
download42-minishell-a3f86df5be799fa3dbde5edbcf81648b616f1beb.tar.gz
42-minishell-a3f86df5be799fa3dbde5edbcf81648b616f1beb.tar.bz2
42-minishell-a3f86df5be799fa3dbde5edbcf81648b616f1beb.tar.xz
42-minishell-a3f86df5be799fa3dbde5edbcf81648b616f1beb.tar.zst
42-minishell-a3f86df5be799fa3dbde5edbcf81648b616f1beb.zip
Normed b_sqb_file
Diffstat (limited to '')
-rw-r--r--src/b_sqb_file.c20
1 files changed, 6 insertions, 14 deletions
diff --git a/src/b_sqb_file.c b/src/b_sqb_file.c
index c3a568d..adc4848 100644
--- a/src/b_sqb_file.c
+++ b/src/b_sqb_file.c
@@ -18,10 +18,7 @@
#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(uint8_t id, const char path[], struct stat sb)
{
if (id == FT_ID_SQB_B && S_ISBLK(sb.st_mode) == 1)
return (TRUE);
@@ -49,9 +46,7 @@ static t_bool
return (FALSE);
}
-uint8_t
- b_sqb_file_tests(uint8_t id,
- char *argv[])
+uint8_t b_sqb_file_tests(uint8_t id, char *argv[])
{
struct stat sb;
@@ -68,10 +63,9 @@ uint8_t
return (1);
}
-static t_bool
- b_sqb_file_comp_tests(uint8_t id,
- struct stat sb1,
- struct stat sb2)
+static t_bool b_sqb_file_comp_tests(uint8_t id,
+ struct stat sb1,
+ struct stat sb2)
{
if (id == FT_ID_SQB_NT &&
sb1.st_mtim.tv_sec > sb2.st_mtim.tv_sec)
@@ -82,9 +76,7 @@ static t_bool
return (FALSE);
}
-uint8_t
- b_sqb_double_file_tests(uint8_t id,
- char *argv[])
+uint8_t b_sqb_double_file_tests(uint8_t id, char *argv[])
{
struct stat sb[2];