[Spice-commits] tests/usb-acl-helper.c

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Oct 2 07:27:43 UTC 2018


 tests/usb-acl-helper.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit a9c715ea0934ea9089826576c6887070509bb623
Author: Eduardo Lima (Etrunko) <etrunko at redhat.com>
Date:   Thu Sep 27 11:26:59 2018 -0300

    tests: Add missing static statement
    
    Fixes the following warnings:
    
    ../tests/usb-acl-helper.c:29:10: warning: no previous prototype for ‘abort_test’ [-Wmissing-prototypes]
     gboolean abort_test(gpointer user_data)
              ^~~~~~~~~~
    ../tests/usb-acl-helper.c:37:10: warning: no previous prototype for ‘cancel_test’ [-Wmissing-prototypes]
     gboolean cancel_test(gpointer user_data)
              ^~~~~~~~~~~
    
    Signed-off-by: Eduardo Lima (Etrunko) <etrunko at redhat.com>
    Acked-by: Marc-André Lureau <marcandre.lureau at gmail.com>

diff --git a/tests/usb-acl-helper.c b/tests/usb-acl-helper.c
index 2b28ade..b24f452 100644
--- a/tests/usb-acl-helper.c
+++ b/tests/usb-acl-helper.c
@@ -26,7 +26,7 @@ typedef struct {
     guint timeout_source;
 } Fixture;
 
-gboolean abort_test(gpointer user_data)
+static gboolean abort_test(gpointer user_data)
 {
     Fixture *fixture = user_data;
     g_cancellable_cancel(fixture->cancellable);
@@ -34,7 +34,7 @@ gboolean abort_test(gpointer user_data)
     return G_SOURCE_REMOVE;
 }
 
-gboolean cancel_test(gpointer user_data)
+static gboolean cancel_test(gpointer user_data)
 {
     Fixture *fixture = user_data;
     g_cancellable_cancel(fixture->cancellable);


More information about the Spice-commits mailing list