]> tinc-vpn.org Git - tinc/blobdiff - src/tincctl.c
Improve use of compiler attributes
[tinc] / src / tincctl.c
index a18f6ce6552726e7b13e49e1c683a0ef8e5d54a6..b2d98f62fe4d95724fbce78edf0327d7bb6a1dc7 100644 (file)
@@ -1623,7 +1623,8 @@ char *get_my_name(bool verbose) {
        return NULL;
 }
 
-ecdsa_t *get_pubkey(FILE *f) {
+static ecdsa_t *get_pubkey(FILE *f) ATTR_MALLOC ATTR_DEALLOCATOR(ecdsa_free);
+static ecdsa_t *get_pubkey(FILE *f) {
        char buf[4096];
        char *value;