diff options
author | dzwdz | 2022-08-06 23:53:42 +0200 |
---|---|---|
committer | dzwdz | 2022-08-06 23:53:42 +0200 |
commit | 809f9a9899b219e33ec839b3f9bee644fcfecacc (patch) | |
tree | 5a4f4149859d5e834b5fe73b52a5e95e7e2d749b /src/shared/path.c | |
parent | e86d720f6481e83ff555989006b7f62433318f57 (diff) |
shared assert.h
Diffstat (limited to 'src/shared/path.c')
-rw-r--r-- | src/shared/path.c | 4 |
1 files changed, 1 insertions, 3 deletions
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 <assert.h> #include <camellia/path.h> #include <shared/mem.h> #include <stdbool.h> -// 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 |