mirror of git://git.sysmocom.de/ofono
Remove unnecessary alignment to 32bit boundary
This commit is contained in:
parent
58830cb025
commit
76fce49e49
|
@ -357,14 +357,14 @@ static void send_context_authenticate(GIsiClient *client, void *opaque)
|
||||||
cd->handle,
|
cd->handle,
|
||||||
2, /* sub blocks */
|
2, /* sub blocks */
|
||||||
GPDS_USER_NAME_INFO,
|
GPDS_USER_NAME_INFO,
|
||||||
(3 + username_len + 3) & ~3,
|
3 + username_len + 3,
|
||||||
username_len,
|
username_len,
|
||||||
/* Username goes here */
|
/* Username goes here */
|
||||||
};
|
};
|
||||||
|
|
||||||
const unsigned char bottom[] = {
|
const unsigned char bottom[] = {
|
||||||
GPDS_PASSWORD_INFO,
|
GPDS_PASSWORD_INFO,
|
||||||
(3 + password_len + 3) & ~3,
|
3 + password_len + 3,
|
||||||
password_len,
|
password_len,
|
||||||
/* Password goes here */
|
/* Password goes here */
|
||||||
};
|
};
|
||||||
|
@ -417,7 +417,7 @@ static gboolean link_conf_cb(GIsiClient *client,
|
||||||
4, /* subblock length */
|
4, /* subblock length */
|
||||||
0, 0, /* padding */
|
0, 0, /* padding */
|
||||||
GPDS_APN_INFO,
|
GPDS_APN_INFO,
|
||||||
(3 + apn_len + 3) & ~3,
|
3 + apn_len + 3,
|
||||||
apn_len,
|
apn_len,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -136,11 +136,11 @@ static GIsiRequest *ussd_send_make(GIsiClient *client, uint8_t *str,
|
||||||
const uint8_t msg[] = {
|
const uint8_t msg[] = {
|
||||||
SS_GSM_USSD_SEND_REQ,
|
SS_GSM_USSD_SEND_REQ,
|
||||||
SS_GSM_USSD_COMMAND,
|
SS_GSM_USSD_COMMAND,
|
||||||
0x01, /* subblock count */
|
0x01, /* subblock count */
|
||||||
SS_GSM_USSD_STRING,
|
SS_GSM_USSD_STRING,
|
||||||
(4 + len + 3) & ~3, /* subblock length */
|
4 + len + 3, /* subblock length */
|
||||||
0x0f, /* DCS */
|
0x0f, /* DCS */
|
||||||
len, /* string length */
|
len, /* string length */
|
||||||
/* USSD string goes here */
|
/* USSD string goes here */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -196,7 +196,7 @@ static void isi_cancel(struct ofono_ussd *ussd,
|
||||||
const unsigned char msg[] = {
|
const unsigned char msg[] = {
|
||||||
SS_GSM_USSD_SEND_REQ,
|
SS_GSM_USSD_SEND_REQ,
|
||||||
SS_GSM_USSD_END,
|
SS_GSM_USSD_END,
|
||||||
0x00 /* subblock count */
|
0x00 /* subblock count */
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!cbd)
|
if (!cbd)
|
||||||
|
|
Loading…
Reference in New Issue