summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFrediano Ziglio <freddy77@gmail.com>2020-09-21 07:01:23 +0100
committerFrediano Ziglio <freddy77@gmail.com>2020-09-21 15:22:11 +0100
commit4983eb1f421114c38e3bbc4fbf5e21196d816420 (patch)
tree10b2d68536cffe9fd9cf03e7998123c5462e4969 /src
parent7e37b05774fb5aed1978e28e3201fc8d28498df6 (diff)
vdagentd: Make pidfilename a constant
No need to be a variable Signed-off-by: Frediano Ziglio <freddy77@gmail.com> Acked-by: Jakub Janků <jjanku@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/vdagentd/vdagentd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vdagentd/vdagentd.c b/src/vdagentd/vdagentd.c
index 051de74..b966d9b 100644
--- a/src/vdagentd/vdagentd.c
+++ b/src/vdagentd/vdagentd.c
@@ -55,9 +55,9 @@ struct agent_data {
int screen_count;
};
-/* variables */
-static const char *pidfilename = "/run/spice-vdagentd/spice-vdagentd.pid";
+static const char pidfilename[] = "/run/spice-vdagentd/spice-vdagentd.pid";
+/* variables */
static gchar *portdev = NULL;
static gchar *vdagentd_socket = NULL;
static gchar *uinput_device = NULL;