Fix old-style warnings all over the codebase

As caught by compiling with `-Wold-style-definition` and `-Wstrict-prototypes`.
This commit is contained in:
Evangelos Ribeiro Tzaras
2021-06-02 20:18:50 +02:00
parent 38abbc5b18
commit 96a7d901c1
20 changed files with 23 additions and 23 deletions

View File

@@ -17,7 +17,7 @@
#include <libpeas/peas.h>
static void
test_account_basic ()
test_account_basic (void)
{
CallsCredentials *alice = calls_credentials_new ();
CallsCredentials *bob = calls_credentials_new ();

View File

@@ -26,7 +26,7 @@ call_remove_cb (CallsManager *manager, CallsCall *call)
}
static void
test_calls_manager_without_provider ()
test_calls_manager_without_provider (void)
{
guint no_origins;
GListModel *origins;
@@ -46,7 +46,7 @@ test_calls_manager_without_provider ()
}
static void
test_calls_manager_dummy_provider ()
test_calls_manager_dummy_provider (void)
{
g_autoptr (CallsManager) manager = calls_manager_new ();
GListModel *origins;
@@ -99,7 +99,7 @@ test_calls_manager_dummy_provider ()
}
static void
test_calls_manager_mm_provider ()
test_calls_manager_mm_provider (void)
{
GListModel *origins_tel;
g_autoptr (CallsManager) manager = calls_manager_new ();
@@ -121,7 +121,7 @@ test_calls_manager_mm_provider ()
}
static void
test_calls_manager_multiple_providers_mm_sip ()
test_calls_manager_multiple_providers_mm_sip (void)
{
g_autoptr (CallsCredentials) alice = NULL;
g_autoptr (CallsCredentials) bob = NULL;

View File

@@ -12,7 +12,7 @@
#include <libpeas/peas.h>
static void
test_calls_plugin_loading ()
test_calls_plugin_loading (void)
{
g_autoptr (CallsProvider) dummy_provider = NULL;
g_autoptr (CallsProvider) mm_provider = NULL;

View File

@@ -438,7 +438,7 @@ find_string_in_sdp_message (const char *sdp,
}
static void
test_sip_media_manager ()
test_sip_media_manager (void)
{
g_autoptr (CallsSipMediaManager) manager = calls_sip_media_manager_default ();
char *sdp_message = NULL;

View File

@@ -11,7 +11,7 @@
#include <gtk/gtk.h>
static void
test_protocol_prefix ()
test_protocol_prefix (void)
{
g_assert_cmpstr (get_protocol_from_address ("sip:alice@example.org"), ==, "sip");
g_assert_cmpstr (get_protocol_from_address ("SIP:alice@example.org"), ==, "sip");