telit: fix minor coding style issues

This commit is contained in:
Aleksander Morgado
2015-12-19 11:43:17 +01:00
parent c4ffe572ae
commit 740e1b5461
3 changed files with 11 additions and 12 deletions

View File

@@ -59,17 +59,17 @@ typedef enum {
} LoadUnlockRetriesStep;
typedef struct {
MMBroadbandModemTelit* self;
GSimpleAsyncResult* result;
MMUnlockRetries* retries;
MMBroadbandModemTelit *self;
GSimpleAsyncResult *result;
MMUnlockRetries *retries;
LoadUnlockRetriesStep step;
guint succeded_requests;
} LoadUnlockRetriesContext;
static void load_unlock_retries_step (LoadUnlockRetriesContext* ctx);
static void load_unlock_retries_step (LoadUnlockRetriesContext *ctx);
static void
load_unlock_retries_context_complete_and_free (LoadUnlockRetriesContext* ctx)
load_unlock_retries_context_complete_and_free (LoadUnlockRetriesContext *ctx)
{
g_simple_async_result_complete (ctx->result);
g_object_unref (ctx->retries);
@@ -92,8 +92,8 @@ modem_load_unlock_retries_finish (MMIfaceModem *self,
static void
csim_query_ready (MMBaseModem *self,
GAsyncResult* res,
LoadUnlockRetriesContext* ctx)
GAsyncResult *res,
LoadUnlockRetriesContext *ctx)
{
const gchar *response;
gint unlock_retries;
@@ -142,7 +142,7 @@ next_step:
}
static void
load_unlock_retries_step (LoadUnlockRetriesContext* ctx)
load_unlock_retries_step (LoadUnlockRetriesContext *ctx)
{
switch (ctx->step) {
case LOAD_UNLOCK_RETRIES_STEP_FIRST:
@@ -204,7 +204,7 @@ modem_load_unlock_retries (MMIfaceModem *self,
GAsyncReadyCallback callback,
gpointer user_data)
{
LoadUnlockRetriesContext* ctx;
LoadUnlockRetriesContext *ctx;
ctx = g_slice_new0 (LoadUnlockRetriesContext);
ctx->self = g_object_ref (self);

View File

@@ -29,7 +29,7 @@
/*****************************************************************************/
/* +CSIM response parser */
gint parse_csim_response (const guint step, const gchar* response, GError** error)
gint parse_csim_response (const guint step, const gchar *response, GError **error)
{
GRegex *r = NULL;
GMatchInfo *match_info = NULL;

View File

@@ -19,7 +19,6 @@
#include <glib.h>
/* +CSIM response parser */
gint parse_csim_response (const guint step, const gchar* response, GError** error);
gint parse_csim_response (const guint step, const gchar *response, GError **error);
#endif /* MM_MODEM_HELPERS_TELIT_H */