X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Futils.h;h=f02bb9f23404025b8c4c37722be7cebb9419d3c0;hb=e6111686d731af1e621ea9f38babef50610f7717;hp=0818047777728620e13419bb78f0b180e865a47e;hpb=c44b08613508c993e7fd9f625e0b1b4775efffed;p=tinc diff --git a/src/utils.h b/src/utils.h index 08180477..f02bb9f2 100644 --- a/src/utils.h +++ b/src/utils.h @@ -72,8 +72,10 @@ static inline suseconds_t jitter(void) { extern bool check_id(const char *id); extern bool check_netname(const char *netname, bool strict); -char *replace_name(const char *name); +char *replace_name(const char *name) ATTR_MALLOC; -extern FILE *fopenmask(const char *filename, const char *mode, mode_t perms); +char *absolute_path(const char *path) ATTR_MALLOC; + +extern FILE *fopenmask(const char *filename, const char *mode, mode_t perms) ATTR_DEALLOCATOR(fclose); #endif