[gobject-introspection] gmarshallingtests: Fix prototype () -> (void)



commit b0fccfbf26536817b39b30b3a5b9c01e2cc2c5c5
Author: Colin Walters <walters verbum org>
Date:   Sat Oct 27 12:53:52 2012 -0400

    gmarshallingtests: Fix prototype () -> (void)
    
    Dear Python programmers, () doesn't mean what you think it means in C.

 tests/gimarshallingtests.c |    4 ++--
 tests/gimarshallingtests.h |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/tests/gimarshallingtests.c b/tests/gimarshallingtests.c
index 3d6e345..81a6144 100644
--- a/tests/gimarshallingtests.c
+++ b/tests/gimarshallingtests.c
@@ -4563,9 +4563,9 @@ gi_marshalling_tests_filename_list_return (void)
  * Returns: (transfer full): a #GParamSpec
  */
 GParamSpec *
-gi_marshalling_tests_param_spec_return()
+gi_marshalling_tests_param_spec_return (void)
 {
-  return g_param_spec_string("test-param", "test", "This is a test", "42", G_PARAM_READABLE);
+  return g_param_spec_string ("test-param", "test", "This is a test", "42", G_PARAM_READABLE);
 }
 
 /**
diff --git a/tests/gimarshallingtests.h b/tests/gimarshallingtests.h
index 7768a88..b1276bb 100644
--- a/tests/gimarshallingtests.h
+++ b/tests/gimarshallingtests.h
@@ -961,7 +961,7 @@ void gi_marshalling_tests_gerror_out_transfer_none(GError **err, const gchar **d
 GError *gi_marshalling_tests_gerror_return(void);
 
 /* GParamSpec */
-GParamSpec *gi_marshalling_tests_param_spec_return();
+GParamSpec *gi_marshalling_tests_param_spec_return (void);
 void gi_marshalling_tests_param_spec_out(GParamSpec **param);
 
 /* Overrides */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]