Blame SOURCES/0004-vddk-Make-dlsym-variables-static.patch

b61625
From 901f42bd3fc61af0a4b864d4961fc4b02bec0541 Mon Sep 17 00:00:00 2001
b61625
From: "Richard W.M. Jones" <rjones@redhat.com>
b61625
Date: Wed, 25 Jul 2018 09:10:03 +0100
b61625
Subject: [PATCH] vddk: Make dlsym variables static.
b61625
b61625
Fixes commit 8d7f7c26eb435334d7fa35e84ceee7d266dfae4c.
b61625
b61625
(cherry picked from commit 168364eff47004e64d0880516de5744fecaa8047)
b61625
---
b61625
 plugins/vddk/vddk.c | 22 +++++++++++-----------
b61625
 1 file changed, 11 insertions(+), 11 deletions(-)
b61625
b61625
diff --git a/plugins/vddk/vddk.c b/plugins/vddk/vddk.c
b61625
index 54b95fb..e8b1be5 100644
b61625
--- a/plugins/vddk/vddk.c
b61625
+++ b/plugins/vddk/vddk.c
b61625
@@ -48,19 +48,19 @@
b61625
 /* The VDDK APIs that we call.  These globals are initialized when the
b61625
  * plugin is loaded (by vddk_load).
b61625
  */
b61625
-char *(*VixDiskLib_GetErrorText) (VixError err, const char *unused);
b61625
-void (*VixDiskLib_FreeErrorText) (char *text);
b61625
-VixError (*VixDiskLib_InitEx) (uint32_t major, uint32_t minor, VixDiskLibGenericLogFunc *log_function, VixDiskLibGenericLogFunc *warn_function, VixDiskLibGenericLogFunc *panic_function, const char *lib_dir, const char *config_file);
b61625
+static char *(*VixDiskLib_GetErrorText) (VixError err, const char *unused);
b61625
+static void (*VixDiskLib_FreeErrorText) (char *text);
b61625
+static VixError (*VixDiskLib_InitEx) (uint32_t major, uint32_t minor, VixDiskLibGenericLogFunc *log_function, VixDiskLibGenericLogFunc *warn_function, VixDiskLibGenericLogFunc *panic_function, const char *lib_dir, const char *config_file);
b61625
 void (*VixDiskLib_Exit) (void);
b61625
-VixError (*VixDiskLib_ConnectEx) (const VixDiskLibConnectParams *params, char read_only, const char *snapshot_ref, const char *transport_modes, VixDiskLibConnection *connection);
b61625
-VixError (*VixDiskLib_Open) (const VixDiskLibConnection connection, const char *path, uint32_t flags, VixDiskLibHandle *handle);
b61625
+static VixError (*VixDiskLib_ConnectEx) (const VixDiskLibConnectParams *params, char read_only, const char *snapshot_ref, const char *transport_modes, VixDiskLibConnection *connection);
b61625
+static VixError (*VixDiskLib_Open) (const VixDiskLibConnection connection, const char *path, uint32_t flags, VixDiskLibHandle *handle);
b61625
 const char *(*VixDiskLib_GetTransportMode) (VixDiskLibHandle handle);
b61625
-VixError (*VixDiskLib_Close) (VixDiskLibHandle handle);
b61625
-VixError (*VixDiskLib_Disconnect) (VixDiskLibConnection connection);
b61625
-VixError (*VixDiskLib_GetInfo) (VixDiskLibHandle handle, VixDiskLibInfo **info);
b61625
-void (*VixDiskLib_FreeInfo) (VixDiskLibInfo *info);
b61625
-VixError (*VixDiskLib_Read) (VixDiskLibHandle handle, uint64_t start_sector, uint64_t nr_sectors, unsigned char *buf);
b61625
-VixError (*VixDiskLib_Write) (VixDiskLibHandle handle, uint64_t start_sector, uint64_t nr_sectors, const unsigned char *buf);
b61625
+static VixError (*VixDiskLib_Close) (VixDiskLibHandle handle);
b61625
+static VixError (*VixDiskLib_Disconnect) (VixDiskLibConnection connection);
b61625
+static VixError (*VixDiskLib_GetInfo) (VixDiskLibHandle handle, VixDiskLibInfo **info);
b61625
+static void (*VixDiskLib_FreeInfo) (VixDiskLibInfo *info);
b61625
+static VixError (*VixDiskLib_Read) (VixDiskLibHandle handle, uint64_t start_sector, uint64_t nr_sectors, unsigned char *buf);
b61625
+static VixError (*VixDiskLib_Write) (VixDiskLibHandle handle, uint64_t start_sector, uint64_t nr_sectors, const unsigned char *buf);
b61625
 
b61625
 /* Parameters passed to InitEx. */
b61625
 #define VDDK_MAJOR 5
b61625
-- 
b61625
1.8.3.1
b61625