X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Futils.h;h=c33e28ebe2b42ebbc91f269fde2f0d5c17409b30;hb=9235256116574927657a93944ef1b21e255e771b;hp=f02bb9f23404025b8c4c37722be7cebb9419d3c0;hpb=d93d4f9dbd09bc5e53a9b5eeb1cc94939fee32bc;p=tinc diff --git a/src/utils.h b/src/utils.h index f02bb9f2..c33e28eb 100644 --- a/src/utils.h +++ b/src/utils.h @@ -74,8 +74,7 @@ extern bool check_id(const char *id); extern bool check_netname(const char *netname, bool strict); char *replace_name(const char *name) ATTR_MALLOC; -char *absolute_path(const char *path) ATTR_MALLOC; - -extern FILE *fopenmask(const char *filename, const char *mode, mode_t perms) ATTR_DEALLOCATOR(fclose); +// NULL-safe wrapper around strcmp(). +extern bool string_eq(const char *first, const char *second); #endif