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

View File

@@ -29,7 +29,7 @@
/*****************************************************************************/ /*****************************************************************************/
/* +CSIM response parser */ /* +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; GRegex *r = NULL;
GMatchInfo *match_info = NULL; GMatchInfo *match_info = NULL;

View File

@@ -19,7 +19,6 @@
#include <glib.h> #include <glib.h>
/* +CSIM response parser */ /* +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 */ #endif /* MM_MODEM_HELPERS_TELIT_H */