[Spice-commits] 2 commits - tests/test-marshallers.c

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Dec 17 09:58:20 UTC 2018


 tests/test-marshallers.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit a45f656aac84b8880e6ff5d88ce7d54b7543805f
Author: Frediano Ziglio <fziglio at redhat.com>
Date:   Sun Dec 16 10:54:02 2018 +0000

    test-marshaller: Make main declaration easier
    
    Declare without argument instead of long declaration.
    
    Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
    Acked-by: Uri Lublin <uril at redhat.com>

diff --git a/tests/test-marshallers.c b/tests/test-marshallers.c
index c4a799e..83c8956 100644
--- a/tests/test-marshallers.c
+++ b/tests/test-marshallers.c
@@ -92,7 +92,7 @@ uint8_t * spice_parse_msg(uint8_t *message_start, uint8_t *message_end,
                           uint32_t channel, uint16_t message_type, int minor,
                           size_t *size_out, message_destructor_t *free_message);
 
-int main(int argc G_GNUC_UNUSED, char **argv G_GNUC_UNUSED)
+int main(void)
 {
     SpiceMarshaller *marshaller;
     SpiceMsgMainShortDataSubMarshall *msg;
commit ac8d27104bb11f9968adc767f88e56ea1373c1bf
Author: Frediano Ziglio <fziglio at redhat.com>
Date:   Sun Dec 16 10:53:27 2018 +0000

    test-marshaller: Make test_overflow static
    
    Not used outside the test.
    
    Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
    Acked-by: Uri Lublin <uril at redhat.com>

diff --git a/tests/test-marshallers.c b/tests/test-marshallers.c
index a70ac95..c4a799e 100644
--- a/tests/test-marshallers.c
+++ b/tests/test-marshallers.c
@@ -32,7 +32,7 @@
 
 #define NUM_CHANNELS 3u
 
-void test_overflow(SpiceMarshaller *m)
+static void test_overflow(SpiceMarshaller *m)
 {
     SpiceMsgChannels *msg;
     uint8_t *data, *out;


More information about the Spice-commits mailing list