basic/path-util: inline two trivial functions

While at it, add assert() for the argument.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2020-09-18 15:28:48 +02:00
parent f7bc0c324a
commit cd4ff5aa11
2 changed files with 10 additions and 10 deletions
-8
View File
@@ -28,14 +28,6 @@
#include "time-util.h"
#include "utf8.h"
bool path_is_absolute(const char *p) {
return p[0] == '/';
}
bool is_path(const char *p) {
return !!strchr(p, '/');
}
int path_split_and_make_absolute(const char *p, char ***ret) {
char **l;
int r;