mirror of git://git.sysmocom.de/ofono
gatchat: M15 coding styles fixes
This commit is contained in:
parent
2b8b08c134
commit
2182336c8b
|
@ -332,12 +332,12 @@ GAtSyntax *g_at_syntax_new_full(GAtSyntaxFeedFunc feed,
|
|||
}
|
||||
|
||||
|
||||
GAtSyntax *g_at_syntax_new_gsmv1()
|
||||
GAtSyntax *g_at_syntax_new_gsmv1(void)
|
||||
{
|
||||
return g_at_syntax_new_full(gsmv1_feed, gsmv1_hint, GSMV1_STATE_IDLE);
|
||||
}
|
||||
|
||||
GAtSyntax *g_at_syntax_new_gsm_permissive()
|
||||
GAtSyntax *g_at_syntax_new_gsm_permissive(void)
|
||||
{
|
||||
return g_at_syntax_new_full(gsm_permissive_feed, gsm_permissive_hint,
|
||||
GSM_PERMISSIVE_STATE_IDLE);
|
||||
|
|
|
@ -69,13 +69,13 @@ GAtSyntax *g_at_syntax_new_full(GAtSyntaxFeedFunc feed,
|
|||
* properly and can be used to detect a modem's deviations from the relevant
|
||||
* standards.
|
||||
*/
|
||||
GAtSyntax *g_at_syntax_new_gsmv1();
|
||||
GAtSyntax *g_at_syntax_new_gsmv1(void);
|
||||
|
||||
/* This syntax implements an extremely lax parser that can handle a variety
|
||||
* of modems. Unfortunately it does not deal with echo at all, so echo must
|
||||
* be explicitly turned off before using the parser
|
||||
*/
|
||||
GAtSyntax *g_at_syntax_new_gsm_permissive();
|
||||
GAtSyntax *g_at_syntax_new_gsm_permissive(void);
|
||||
|
||||
GAtSyntax *g_at_syntax_ref(GAtSyntax *syntax);
|
||||
void g_at_syntax_unref(GAtSyntax *syntax);
|
||||
|
|
|
@ -509,7 +509,7 @@ static void check_mode(gboolean ok, GAtResult *result, gpointer user_data)
|
|||
g_at_chat_send(control, "AT+CFUN=1", NULL, check_pin, NULL, NULL);
|
||||
}
|
||||
|
||||
static int open_serial()
|
||||
static int open_serial(void)
|
||||
{
|
||||
GAtSyntax *syntax;
|
||||
GIOChannel *channel;
|
||||
|
@ -551,7 +551,7 @@ static int open_serial()
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int open_ip()
|
||||
static int open_ip(void)
|
||||
{
|
||||
int sk, err;
|
||||
struct sockaddr_in addr;
|
||||
|
|
|
@ -67,7 +67,7 @@ static GAtServer *server;
|
|||
static GAtPPP *ppp;
|
||||
unsigned int server_watch;
|
||||
|
||||
static gboolean server_cleanup()
|
||||
static gboolean server_cleanup(void)
|
||||
{
|
||||
if (server_watch)
|
||||
g_source_remove(server_watch);
|
||||
|
@ -1090,7 +1090,7 @@ static gboolean signal_cb(GIOChannel *channel, GIOCondition cond, gpointer data)
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
static int create_signal_io()
|
||||
static int create_signal_io(void)
|
||||
{
|
||||
sigset_t mask;
|
||||
GIOChannel *signal_io;
|
||||
|
|
Loading…
Reference in New Issue