libxl: make one function static
authorJuergen Gross <jgross@suse.com>
Thu, 9 Feb 2017 08:40:31 +0000 (09:40 +0100)
committerWei Liu <wei.liu2@citrix.com>
Mon, 13 Feb 2017 10:59:19 +0000 (10:59 +0000)
libxl__device_frontend_path() is used in libxl_device.c only. Make it
static.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_device.c
tools/libxl/libxl_internal.h

index c72a2b8a56632108dc25a4a708f7915191d5fade..5e966762c6c41f0db8114192d4476c81aca55dac 100644 (file)
@@ -18,7 +18,7 @@
 
 #include "libxl_internal.h"
 
-char *libxl__device_frontend_path(libxl__gc *gc, libxl__device *device)
+static char *libxl__device_frontend_path(libxl__gc *gc, libxl__device *device)
 {
     char *dom_path = libxl__xs_get_dompath(gc, device->domid);
 
index ee279d2c5b9754d173e25a5086a8786737d203ea..5bbede532e80c6883195f54116192e50ba406a24 100644 (file)
@@ -1206,7 +1206,6 @@ _hidden int libxl__device_exists(libxl__gc *gc, xs_transaction_t t,
 _hidden int libxl__device_generic_add(libxl__gc *gc, xs_transaction_t t,
         libxl__device *device, char **bents, char **fents, char **ro_fents);
 _hidden char *libxl__device_backend_path(libxl__gc *gc, libxl__device *device);
-_hidden char *libxl__device_frontend_path(libxl__gc *gc, libxl__device *device);
 _hidden char *libxl__device_libxl_path(libxl__gc *gc, libxl__device *device);
 _hidden int libxl__parse_backend_path(libxl__gc *gc, const char *path,
                                       libxl__device *dev);