diff mbox series

[14/41] libmultipath: rename _NVME_LIB_C

Message ID 20240808152620.93965-15-mwilck@suse.com (mailing list archive)
State Not Applicable, archived
Delegated to: christophe varoqui
Headers show
Series multipath-tools: comply with C library reserved names | expand

Commit Message

Martin Wilck Aug. 8, 2024, 3:25 p.m. UTC
Signed-off-by: Martin Wilck <mwilck@suse.com>
---
 libmultipath/nvme-lib.c | 2 +-
 libmultipath/nvme-lib.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/libmultipath/nvme-lib.c b/libmultipath/nvme-lib.c
index f30e769..0c2be4f 100644
--- a/libmultipath/nvme-lib.c
+++ b/libmultipath/nvme-lib.c
@@ -1,6 +1,6 @@ 
 #include <sys/types.h>
 /* avoid inclusion of standard API */
-#define _NVME_LIB_C 1
+#define NVME_LIB_C 1
 #include "nvme-lib.h"
 #include "nvme-ioctl.c"
 #include "debug.h"
diff --git a/libmultipath/nvme-lib.h b/libmultipath/nvme-lib.h
index 059dca8..6aa9bd2 100644
--- a/libmultipath/nvme-lib.h
+++ b/libmultipath/nvme-lib.h
@@ -16,7 +16,7 @@  int libmp_nvme_ana_log(int fd, void *ana_log, size_t ana_log_len, int rgo);
  */
 int nvme_id_ctrl_ana(int fd, struct nvme_id_ctrl *ctrl);
 
-#ifndef _NVME_LIB_C
+#ifndef NVME_LIB_C
 /*
  * In all files except nvme-lib.c, the nvme functions can be called
  * by their usual name.