Minor style fixes

This commit is contained in:
Denis Kenzior 2009-06-18 02:23:37 -05:00
parent 2b451eaeab
commit c3e3750ebb
3 changed files with 12 additions and 12 deletions

View File

@ -50,7 +50,7 @@ static void at_crsm_info_cb(gboolean ok, GAtResult *result, gpointer user_data)
const guint8 *response; const guint8 *response;
gint sw1, sw2, len; gint sw1, sw2, len;
int flen, rlen; int flen, rlen;
enum ofono_simfile_struct str; enum ofono_sim_file_structure str;
dump_response("at_crsm_info_cb", ok, result); dump_response("at_crsm_info_cb", ok, result);
decode_at_error(&error, g_at_result_final_response(result)); decode_at_error(&error, g_at_result_final_response(result));

View File

@ -103,10 +103,10 @@ struct ofono_own_number {
}; };
/* 51.011 Section 9.3 */ /* 51.011 Section 9.3 */
enum ofono_simfile_struct { enum ofono_sim_file_structure {
OFONO_SIM_FILE_TRANSPARENT = 0, OFONO_SIM_FILE_STRUCTURE_TRANSPARENT = 0,
OFONO_SIM_FILE_FIXED = 1, OFONO_SIM_FILE_STRUCTURE_FIXED = 1,
OFONO_SIM_FILE_CYCLIC = 3 OFONO_SIM_FILE_STRUCTURE_CYCLIC = 3
}; };
/* Notification functions, the integer values here should map to /* Notification functions, the integer values here should map to
@ -169,7 +169,7 @@ typedef void (*ofono_call_barring_cb_t)(const struct ofono_error *error,
typedef void (*ofono_sim_file_info_cb_t)(const struct ofono_error *error, typedef void (*ofono_sim_file_info_cb_t)(const struct ofono_error *error,
int filelength, int filelength,
enum ofono_simfile_struct structure, enum ofono_sim_file_structure structure,
int recordlength, void *data); int recordlength, void *data);
typedef void (*ofono_sim_read_cb_t)(const struct ofono_error *error, typedef void (*ofono_sim_read_cb_t)(const struct ofono_error *error,

View File

@ -237,19 +237,19 @@ static void sim_spn_read_cb(const struct ofono_error *error,
sim_spn_notify(modem, l->data); sim_spn_notify(modem, l->data);
} }
static void sim_spn_info_cb(const struct ofono_error *error, static void sim_spn_info_cb(const struct ofono_error *error, int length,
int length, enum ofono_simfile_struct structure, int dummy, enum ofono_sim_file_structure structure,
void *data) int dummy, void *data)
{ {
struct ofono_modem *modem = data; struct ofono_modem *modem = data;
struct sim_manager_data *sim = modem->sim_manager; struct sim_manager_data *sim = modem->sim_manager;
if (error->type != OFONO_ERROR_TYPE_NO_ERROR || length <= 1 || if (error->type != OFONO_ERROR_TYPE_NO_ERROR || length <= 1 ||
structure != OFONO_SIM_FILE_TRANSPARENT) structure != OFONO_SIM_FILE_STRUCTURE_TRANSPARENT)
return; return;
sim->ops->read_file_transparent(modem, SIM_EFSPN_FILEID, 0, length, sim->ops->read_file_transparent(modem, SIM_EFSPN_FILEID, 0, length,
sim_spn_read_cb, modem); sim_spn_read_cb, modem);
} }
static gboolean sim_retrieve_spn(void *user_data) static gboolean sim_retrieve_spn(void *user_data)
@ -258,7 +258,7 @@ static gboolean sim_retrieve_spn(void *user_data)
struct sim_manager_data *sim = modem->sim_manager; struct sim_manager_data *sim = modem->sim_manager;
sim->ops->read_file_info(modem, SIM_EFSPN_FILEID, sim->ops->read_file_info(modem, SIM_EFSPN_FILEID,
sim_spn_info_cb, modem); sim_spn_info_cb, modem);
return FALSE; return FALSE;
} }