Skip to content

Commit 24cda3d

Browse files
committed
cleanup: rename _cleanup_addrinfo_ to __cleanup_addrinfo
Follow the new naming pattern of the compiler attributes which is just __NAME. This is what the kernel is using as well. Signed-off-by: Daniel Wagner <[email protected]>
1 parent 3228c78 commit 24cda3d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

libnvme/src/nvme/cleanup.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ static inline void cleanup_fd(int *fd)
4545
#define __cleanup_fd __cleanup(cleanup_fd)
4646

4747
static inline DEFINE_CLEANUP_FUNC(cleanup_addrinfo, struct addrinfo *, freeaddrinfo)
48-
#define _cleanup_addrinfo_ __cleanup(cleanup_addrinfo)
48+
#define __cleanup_addrinfo __cleanup(cleanup_addrinfo)
4949

5050
static inline void free_uri(struct libnvme_fabrics_uri **uri)
5151
{

libnvme/src/nvme/util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ __public const char *libnvme_strerror(int errnum)
456456
int hostname2traddr(struct libnvme_global_ctx *ctx, const char *traddr,
457457
char **hostname)
458458
{
459-
_cleanup_addrinfo_ struct addrinfo *host_info = NULL;
459+
__cleanup_addrinfo struct addrinfo *host_info = NULL;
460460
struct addrinfo hints = {.ai_family = AF_UNSPEC};
461461
char addrstr[NVMF_TRADDR_SIZE];
462462
const char *p;

0 commit comments

Comments
 (0)