1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-25 13:55:34 -05:00

tests: Mark static functions as static

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
This commit is contained in:
Quentin Glidic 2017-05-04 14:53:35 +02:00
parent 1bbb19b4cb
commit cdc352edf9
No known key found for this signature in database
GPG key ID: AC203F96E2C34BB7
2 changed files with 6 additions and 6 deletions

View file

@ -90,11 +90,11 @@ gboolean x11_parse_key ( G_GNUC_UNUSED const char *combo, G_GNUC_UNUSED unsigned
#define ck_assert_ptr_null(X) _ck_assert_ptr_null(X, ==) #define ck_assert_ptr_null(X) _ck_assert_ptr_null(X, ==)
#define ck_assert_ptr_nonnull(X) _ck_assert_ptr_null(X, !=) #define ck_assert_ptr_nonnull(X) _ck_assert_ptr_null(X, !=)
#endif #endif
void test_mode_setup ( void ) static void test_mode_setup ( void )
{ {
ck_assert_int_eq ( mode_init ( &help_keys_mode ), TRUE); ck_assert_int_eq ( mode_init ( &help_keys_mode ), TRUE);
} }
void test_mode_teardown (void ) static void test_mode_teardown (void )
{ {
mode_destroy ( &help_keys_mode ); mode_destroy ( &help_keys_mode );
} }
@ -159,7 +159,7 @@ START_TEST(test_mode_match_entry)
} }
END_TEST END_TEST
Suite * mode_suite (void) static Suite * mode_suite (void)
{ {
Suite *s; Suite *s;
TCase *tc_core; TCase *tc_core;

View file

@ -90,12 +90,12 @@ void rofi_add_error_message ( GString *msg )
error = TRUE; error = TRUE;
} }
void theme_parser_setup ( void ) static void theme_parser_setup ( void )
{ {
error = 0; error = 0;
} }
void theme_parser_teardown ( void ) static void theme_parser_teardown ( void )
{ {
ck_assert_ptr_null ( error_msg ); ck_assert_ptr_null ( error_msg );
ck_assert_int_eq ( error, 0); ck_assert_int_eq ( error, 0);
@ -671,7 +671,7 @@ START_TEST ( test_import_empty)
} }
END_TEST END_TEST
Suite * theme_parser_suite (void) static Suite * theme_parser_suite (void)
{ {
Suite *s; Suite *s;
TCase *tc_core; TCase *tc_core;