projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improve recently seen address cache
[tinc]
/
src
/
utils.h
diff --git
a/src/utils.h
b/src/utils.h
index
bd5ce13
..
487058a
100644
(file)
--- a/
src/utils.h
+++ b/
src/utils.h
@@
-72,10
+72,13
@@
static inline suseconds_t jitter(void) {
extern bool check_id(const char *id);
extern bool check_netname(const char *netname, bool strict);
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
;
char *absolute_path(const char *path) ATTR_MALLOC;
char *absolute_path(const char *path) ATTR_MALLOC;
-extern FILE *fopenmask(const char *filename, const char *mode, mode_t perms);
+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
#endif