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

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