Skip to content

Commit 31fbe00

Browse files
committed
cleanup: rename _cleanup_tokener_ to __cleanup_tokener
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 016b3bc commit 31fbe00

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

libnvme/src/nvme/json.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,14 +191,14 @@ static void json_parse_host(struct libnvme_global_ctx *ctx, struct json_object *
191191
}
192192

193193
static DEFINE_CLEANUP_FUNC(cleanup_tokener, json_tokener *, json_tokener_free)
194-
#define _cleanup_tokener_ __cleanup(cleanup_tokener)
194+
#define __cleanup_tokener __cleanup(cleanup_tokener)
195195

196196
static struct json_object *parse_json(struct libnvme_global_ctx *ctx, int fd)
197197
{
198198
char buf[JSON_FILE_BUF_SIZE];
199199
struct json_object *obj;
200200
char *str = NULL;
201-
_cleanup_tokener_ json_tokener *tok = NULL;
201+
__cleanup_tokener json_tokener *tok = NULL;
202202
int ret;
203203
__cleanup_free void *ptr = NULL;
204204
int len = 0;

0 commit comments

Comments
 (0)