From 809f9a9899b219e33ec839b3f9bee644fcfecacc Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sat, 6 Aug 2022 23:53:42 +0200 Subject: shared assert.h --- src/shared/path.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/shared/path.c') diff --git a/src/shared/path.c b/src/shared/path.c index 9d2eda3..175796f 100644 --- a/src/shared/path.c +++ b/src/shared/path.c @@ -1,10 +1,8 @@ +#include #include #include #include -// TODO shared assert -#define assert(...) - int path_simplify(const char *in, char *out, size_t len) { if (len == 0) return -1; // empty paths are invalid if (in[0] != '/') return -1; // so are relative paths -- cgit v1.2.3