Style: Use unsigned int instead of unsigned

This commit is contained in:
Denis Kenzior 2009-12-01 12:04:14 -06:00 committed by Denis Kenzior
parent 7254f8ac86
commit 55572b6e69
6 changed files with 8 additions and 6 deletions

View File

@ -44,7 +44,7 @@ static const char *none_prefix[] = { NULL };
struct gprs_context_data {
GAtChat *chat;
unsigned active_context;
unsigned int active_context;
};
static void at_cgact_down_cb(gboolean ok, GAtResult *result, gpointer user_data)

View File

@ -55,7 +55,7 @@ enum hso_state {
struct gprs_context_data {
GAtChat *chat;
unsigned active_context; /* Currently active */
unsigned int active_context; /* Currently active */
enum hso_state hso_state; /* Are we in req ? */
union {
ofono_gprs_context_cb_t down_cb; /* Down callback */

View File

@ -47,7 +47,7 @@ static const char *none_prefix[] = { NULL };
struct gprs_context_data {
GAtChat *chat;
unsigned active_context;
unsigned int active_context;
};
static void at_enap_down_cb(gboolean ok, GAtResult *result, gpointer user_data)

View File

@ -62,7 +62,8 @@ struct ofono_gprs_context_driver {
ofono_gprs_context_cb_t cb, void *data);
};
void ofono_gprs_context_deactivated(struct ofono_gprs_context *gc, unsigned id);
void ofono_gprs_context_deactivated(struct ofono_gprs_context *gc,
unsigned int id);
int ofono_gprs_context_driver_register(const struct ofono_gprs_context_driver *d);
void ofono_gprs_context_driver_unregister(const struct ofono_gprs_context_driver *d);

View File

@ -83,7 +83,7 @@ struct ofono_phone_number {
};
struct ofono_call {
unsigned id;
unsigned int id;
int type;
int direction;
int status;

View File

@ -1389,7 +1389,8 @@ void ofono_gprs_add_context(struct ofono_gprs *gprs,
__ofono_atom_register(gc->atom, gprs_context_unregister);
}
void ofono_gprs_context_deactivated(struct ofono_gprs_context *gc, unsigned cid)
void ofono_gprs_context_deactivated(struct ofono_gprs_context *gc,
unsigned int cid)
{
DBusConnection *conn = ofono_dbus_get_connection();
GSList *l;