Commit 0728e085 authored by Frediano Ziglio's avatar Frediano Ziglio Committed by Christophe Fergeau

Make some variables static

Signed-off-by: Frediano Ziglio's avatarFrediano Ziglio <fziglio@redhat.com>
Acked-by: Christophe Fergeau's avatarChristophe Fergeau <cfergeau@redhat.com>
parent 0e86e9d2
......@@ -73,7 +73,7 @@ static char spice_vdagent_virtio_path_default[] = "/tmp/xspice-virtio";
static char spice_vdagent_uinput_path_default[] = "/tmp/xspice-uinput";
#endif
static char driver_name[] = QXL_DRIVER_NAME;
const OptionInfoRec DefaultOptions[] =
static const OptionInfoRec DefaultOptions[] =
{
{ OPTION_ENABLE_IMAGE_CACHE,
"EnableImageCache", OPTV_BOOLEAN, { 1 }, FALSE },
......
......@@ -751,7 +751,7 @@ static void qxl_bo_output_surf_reloc(qxl_screen_t *qxl, uint32_t dst_offset,
qxl->cmds.n_relocs++;
}
struct qxl_bo_funcs qxl_kms_bo_funcs = {
static struct qxl_bo_funcs qxl_kms_bo_funcs = {
qxl_bo_alloc,
qxl_cmd_alloc,
qxl_bo_map,
......
......@@ -690,7 +690,7 @@ static void qxl_bo_output_surf_reloc(qxl_screen_t *qxl, uint32_t dst_offset,
*(uint32_t *)((char *)dst_bo->internal_virt_addr + dst_offset) = surf->id;
}
struct qxl_bo_funcs qxl_ums_bo_funcs = {
static struct qxl_bo_funcs qxl_ums_bo_funcs = {
qxl_bo_alloc,
qxl_cmd_alloc,
qxl_bo_map,
......
......@@ -72,7 +72,7 @@
* We currently add it during attache_worker - should not be called more
* then once during lifetime (but we don't check)
*/
QXLDevMemSlot slot = {
static QXLDevMemSlot slot = {
.slot_group_id = MEMSLOT_GROUP,
.slot_id = 0,
.generation = 0,
......
......@@ -44,7 +44,7 @@ typedef struct XSpiceSmartcardCharDeviceInstance {
SpiceWatch *watch;
} XSpiceSmartcardCharDeviceInstance;
XSpiceSmartcardCharDeviceInstance smartcard_sin = {
static XSpiceSmartcardCharDeviceInstance smartcard_sin = {
.base = {
.subtype = "smartcard"
}
......
......@@ -24,7 +24,7 @@ typedef struct XSpiceVdagentCharDeviceInstance {
qxl_screen_t *qxl;
} XSpiceVdagentCharDeviceInstance;
XSpiceVdagentCharDeviceInstance vdagent_sin = {
static XSpiceVdagentCharDeviceInstance vdagent_sin = {
.base = {
.subtype = "vdagent"
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment