Skip to content
Browse files

tests: Fix coding style and compiler warning in regress

Previous commit used old-style declarations which was broken.
  • Loading branch information...
1 parent 0b3162b commit ecef2be0f1b42a2850df35c711a338f15c4d7e4f @cgwalters cgwalters committed Aug 5, 2012
Showing with 8 additions and 5 deletions.
  1. +6 −3 tests/scanner/regress.c
  2. +2 −2 tests/scanner/regress.h
View
9 tests/scanner/regress.c
@@ -3819,11 +3819,14 @@ regress_test_versioning (void)
*
* Returns: (transfer full):
*/
-RegressRenameToStruct * regress_rename_to_struct_new()
+RegressRenameToStruct *
+regress_rename_to_struct_new (void)
{
- return g_new0(RegressRenameToStruct, 1);
+ return g_new0 (RegressRenameToStruct, 1);
}
-void regress_rename_to_struct_set_data(RegressRenameToStruct *self, gpointer data)
+
+void
+regress_rename_to_struct_set_data (RegressRenameToStruct *self, gpointer data)
{
self->data = data;
}
View
4 tests/scanner/regress.h
@@ -908,7 +908,7 @@ typedef struct {
gpointer data;
} RegressRenameToStruct;
-RegressRenameToStruct * regress_rename_to_struct_new();
-void regress_rename_to_struct_set_data(RegressRenameToStruct *self, gpointer data);
+RegressRenameToStruct * regress_rename_to_struct_new (void);
+void regress_rename_to_struct_set_data (RegressRenameToStruct *self, gpointer data);
#endif /* __GITESTTYPES_H__ */

0 comments on commit ecef2be

Please sign in to comment.
Something went wrong with that request. Please try again.