mirror of git://git.sysmocom.de/ofono
unit: M15 coding style fix
This commit is contained in:
parent
04a8d58515
commit
2b8b08c134
|
@ -56,7 +56,7 @@ static const char *invalid_strings[] = {
|
|||
NULL
|
||||
};
|
||||
|
||||
static void test_invalid()
|
||||
static void test_invalid(void)
|
||||
{
|
||||
char *sc;
|
||||
char *sia;
|
||||
|
@ -107,7 +107,7 @@ static const char *valid_strings[] = {
|
|||
NULL
|
||||
};
|
||||
|
||||
static void test_valid()
|
||||
static void test_valid(void)
|
||||
{
|
||||
char *sc;
|
||||
char *sia;
|
||||
|
@ -158,7 +158,7 @@ static const char *invalid_apns[] = {
|
|||
NULL
|
||||
};
|
||||
|
||||
static void test_apn()
|
||||
static void test_apn(void)
|
||||
{
|
||||
int i;
|
||||
gboolean res;
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
#include "idmap.h"
|
||||
|
||||
static void test_alloc()
|
||||
static void test_alloc(void)
|
||||
{
|
||||
struct idmap *idmap;
|
||||
unsigned int bit;
|
||||
|
@ -65,7 +65,7 @@ static void test_alloc()
|
|||
idmap_free(idmap);
|
||||
}
|
||||
|
||||
static void test_alloc_next()
|
||||
static void test_alloc_next(void)
|
||||
{
|
||||
struct idmap *idmap;
|
||||
unsigned int bit;
|
||||
|
|
|
@ -280,7 +280,7 @@ static const guint8 basic_long_frame_result[] =
|
|||
0x78, 0x9A, 0xBC, 0xDE, 0xF0, 0x88, 0xF9
|
||||
};
|
||||
|
||||
static void test_fill_basic()
|
||||
static void test_fill_basic(void)
|
||||
{
|
||||
guint8 control_frame[6];
|
||||
guint8 data_frame[128];
|
||||
|
@ -327,7 +327,7 @@ static const guint8 advanced_quoted_data_result[] =
|
|||
{ 0x7E, 0x07, 0xEF, 0x12, 0x34, 0x56, 0x7D, 0x5E, 0x78,
|
||||
0x7D, 0x5D, 0x05, 0x7E };
|
||||
|
||||
static void test_fill_advanced()
|
||||
static void test_fill_advanced(void)
|
||||
{
|
||||
guint8 control_frame[8];
|
||||
guint8 data_frame[128];
|
||||
|
@ -368,7 +368,7 @@ static int basic_frame_size = 7;
|
|||
|
||||
static const guint8 basic_output[] = { 0x12, 0x34, 0x56 };
|
||||
|
||||
static void test_extract_basic()
|
||||
static void test_extract_basic(void)
|
||||
{
|
||||
int total = 0;
|
||||
int nread;
|
||||
|
@ -467,7 +467,7 @@ static int advanced_frame_size = 6;
|
|||
|
||||
static const guint8 advanced_output[] = { 0x12, 0x34, 0x56 };
|
||||
|
||||
static void test_extract_advanced()
|
||||
static void test_extract_advanced(void)
|
||||
{
|
||||
int total = 0;
|
||||
int nread;
|
||||
|
|
|
@ -80,12 +80,12 @@ static void test_buffer(const unsigned char *buf, size_t size)
|
|||
g_assert(ber_tlv_iter_next(&iter) == FALSE);
|
||||
}
|
||||
|
||||
static void test_ber_tlv_iter()
|
||||
static void test_ber_tlv_iter(void)
|
||||
{
|
||||
test_buffer(valid_mms_params, sizeof(valid_mms_params));
|
||||
}
|
||||
|
||||
static void test_ber_tlv_builder_mms()
|
||||
static void test_ber_tlv_builder_mms(void)
|
||||
{
|
||||
struct ber_tlv_iter top_iter, nested_iter;
|
||||
struct ber_tlv_builder top_builder, nested_builder;
|
||||
|
@ -128,7 +128,7 @@ static void test_ber_tlv_builder_mms()
|
|||
test_buffer(pdu, pdulen);
|
||||
}
|
||||
|
||||
static void test_ber_tlv_builder_efpnn()
|
||||
static void test_ber_tlv_builder_efpnn(void)
|
||||
{
|
||||
struct sim_eons *eons_info;
|
||||
unsigned char efpnn0[64], efpnn1[64];
|
||||
|
@ -188,7 +188,7 @@ static void test_ber_tlv_builder_efpnn()
|
|||
sim_eons_free(eons_info);
|
||||
}
|
||||
|
||||
static void test_ber_tlv_builder_3g_status()
|
||||
static void test_ber_tlv_builder_3g_status(void)
|
||||
{
|
||||
unsigned char buf[512];
|
||||
struct ber_tlv_builder top_builder, nested_builder;
|
||||
|
@ -351,7 +351,7 @@ const unsigned char valid_efpnn[][28] = {
|
|||
0x53, 0x68, 0x6F, 0x72, 0x74, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, }
|
||||
};
|
||||
|
||||
static void test_eons()
|
||||
static void test_eons(void)
|
||||
{
|
||||
const struct sim_eons_operator_info *op_info;
|
||||
struct sim_eons *eons_info;
|
||||
|
@ -383,7 +383,7 @@ static void test_eons()
|
|||
sim_eons_free(eons_info);
|
||||
}
|
||||
|
||||
static void test_ef_db()
|
||||
static void test_ef_db(void)
|
||||
{
|
||||
struct sim_ef_info *info;
|
||||
|
||||
|
@ -405,7 +405,7 @@ static const char *binary_ef = "62178202412183022F058A01058B032F060F8002000A"
|
|||
static const char *record_ef = "62198205422100200483026F408A01058B036F0607"
|
||||
"800200808800";
|
||||
|
||||
static void test_3g_status_data()
|
||||
static void test_3g_status_data(void)
|
||||
{
|
||||
unsigned char *response;
|
||||
long len;
|
||||
|
|
|
@ -143,7 +143,7 @@ static void dump_details(struct sms *sms)
|
|||
}
|
||||
}
|
||||
|
||||
static void test_simple_deliver()
|
||||
static void test_simple_deliver(void)
|
||||
{
|
||||
struct sms sms;
|
||||
unsigned char *decoded_pdu;
|
||||
|
@ -214,7 +214,7 @@ static void test_simple_deliver()
|
|||
g_free(utf8);
|
||||
}
|
||||
|
||||
static void test_alnum_sender()
|
||||
static void test_alnum_sender(void)
|
||||
{
|
||||
struct sms sms;
|
||||
unsigned char *decoded_pdu;
|
||||
|
@ -285,7 +285,7 @@ static void test_alnum_sender()
|
|||
g_free(utf8);
|
||||
}
|
||||
|
||||
static void test_deliver_encode()
|
||||
static void test_deliver_encode(void)
|
||||
{
|
||||
struct sms sms;
|
||||
unsigned char *decoded_pdu;
|
||||
|
@ -361,7 +361,7 @@ static void test_deliver_encode()
|
|||
g_free(encoded_pdu);
|
||||
}
|
||||
|
||||
static void test_simple_submit()
|
||||
static void test_simple_submit(void)
|
||||
{
|
||||
struct sms sms;
|
||||
unsigned char *decoded_pdu;
|
||||
|
@ -427,7 +427,7 @@ static void test_simple_submit()
|
|||
g_free(utf8);
|
||||
}
|
||||
|
||||
static void test_submit_encode()
|
||||
static void test_submit_encode(void)
|
||||
{
|
||||
struct sms sms;
|
||||
unsigned char *decoded_pdu;
|
||||
|
@ -931,7 +931,7 @@ static const char *assembly_pdu3 = "038121F340048155550119906041001222044A0500"
|
|||
"00431044B043B0020043D04300433002E";
|
||||
static int assembly_pdu_len3 = 89;
|
||||
|
||||
static void test_assembly()
|
||||
static void test_assembly(void)
|
||||
{
|
||||
unsigned char pdu[176];
|
||||
long pdu_len;
|
||||
|
@ -1018,7 +1018,7 @@ static const char *expected_no_fragmentation_7bit = "079153485002020911000C915"
|
|||
"348870420140000A71154747A0E4ACF41F4F29C9E769F4121";
|
||||
static const char *sc_addr = "+358405202090";
|
||||
static const char *da_addr = "+358478400241";
|
||||
static void test_prepare_7bit()
|
||||
static void test_prepare_7bit(void)
|
||||
{
|
||||
GSList *r;
|
||||
struct sms *sms;
|
||||
|
@ -1205,7 +1205,7 @@ static void test_limit(gunichar uni, int target_size, gboolean use_16bit)
|
|||
g_free(utf8);
|
||||
}
|
||||
|
||||
static void test_prepare_limits()
|
||||
static void test_prepare_limits(void)
|
||||
{
|
||||
gunichar ascii = 0x41;
|
||||
gunichar ucs2 = 0x416;
|
||||
|
@ -1236,7 +1236,7 @@ static const char *cbs2 = "0110003201114679785E96371A8D46A3D168341A8D46A3D1683"
|
|||
"41A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D168"
|
||||
"341A8D46A3D168341A8D46A3D168341A8D46A3D168341A8D46A3D100";
|
||||
|
||||
static void test_cbs_encode_decode()
|
||||
static void test_cbs_encode_decode(void)
|
||||
{
|
||||
unsigned char *decoded_pdu;
|
||||
long pdu_len;
|
||||
|
@ -1301,7 +1301,7 @@ static void test_cbs_encode_decode()
|
|||
g_free(encoded_pdu);
|
||||
}
|
||||
|
||||
static void test_cbs_assembly()
|
||||
static void test_cbs_assembly(void)
|
||||
{
|
||||
unsigned char *decoded_pdu;
|
||||
long pdu_len;
|
||||
|
@ -1389,7 +1389,7 @@ static void test_cbs_assembly()
|
|||
cbs_assembly_free(assembly);
|
||||
}
|
||||
|
||||
static void test_serialize_assembly()
|
||||
static void test_serialize_assembly(void)
|
||||
{
|
||||
unsigned char pdu[176];
|
||||
long pdu_len;
|
||||
|
@ -1447,7 +1447,7 @@ static const char *ranges[] = { "1-5, 2, 3, 600, 569-900, 999",
|
|||
static const char *inv_ranges[] = { "1-5, 3333", "1-5, afbcd", "1-5, 3-5,,",
|
||||
"1-5, 3-5, c", NULL };
|
||||
|
||||
static void test_range_minimizer()
|
||||
static void test_range_minimizer(void)
|
||||
{
|
||||
int i = 0;
|
||||
|
||||
|
@ -1480,7 +1480,7 @@ static void test_range_minimizer()
|
|||
}
|
||||
}
|
||||
|
||||
static void test_sr_assembly()
|
||||
static void test_sr_assembly(void)
|
||||
{
|
||||
const char *sr_pdu1 = "06040D91945152991136F00160124130340A0160124130"
|
||||
"940A00";
|
||||
|
|
|
@ -341,7 +341,7 @@ unsigned short gsm_turkish_to_unicode_map[] =
|
|||
((c) < 0x80 ? 1 : \
|
||||
((c) < 0x800 ? 2 : 3))
|
||||
|
||||
static void test_invalid()
|
||||
static void test_invalid(void)
|
||||
{
|
||||
long nwritten;
|
||||
long nread;
|
||||
|
@ -382,7 +382,7 @@ static void test_invalid()
|
|||
g_assert(nread == 0);
|
||||
}
|
||||
|
||||
static void test_valid()
|
||||
static void test_valid(void)
|
||||
{
|
||||
long nwritten;
|
||||
long nread;
|
||||
|
@ -444,7 +444,7 @@ static void test_valid()
|
|||
}
|
||||
}
|
||||
|
||||
static void test_valid_turkish()
|
||||
static void test_valid_turkish(void)
|
||||
{
|
||||
long nwritten;
|
||||
long nread;
|
||||
|
@ -515,7 +515,7 @@ static const char expected[] = "It is easy to read text messages via AT "
|
|||
"commands.";
|
||||
static int reported_text_size = 49;
|
||||
|
||||
static void test_decode_encode()
|
||||
static void test_decode_encode(void)
|
||||
{
|
||||
const char *sms = hex_packed;
|
||||
unsigned char *decoded, *packed;
|
||||
|
@ -614,7 +614,7 @@ static void test_decode_encode()
|
|||
g_free(hex_packed);
|
||||
}
|
||||
|
||||
static void test_pack_size()
|
||||
static void test_pack_size(void)
|
||||
{
|
||||
unsigned char c1[] = { 'a' };
|
||||
unsigned char c2[] = { 'a', 'b' };
|
||||
|
@ -676,7 +676,7 @@ static void test_pack_size()
|
|||
g_free(packed);
|
||||
}
|
||||
|
||||
static void test_cr_handling()
|
||||
static void test_cr_handling(void)
|
||||
{
|
||||
unsigned char c7[] = { 'a', 'b', 'c', 'd', 'e', 'f', 'g' };
|
||||
unsigned char c7_expected[] = { 'a', 'b', 'c', 'd', 'e', 'f', 'g',
|
||||
|
@ -739,7 +739,7 @@ static void test_cr_handling()
|
|||
g_free(packed);
|
||||
}
|
||||
|
||||
static void test_sms_handling()
|
||||
static void test_sms_handling(void)
|
||||
{
|
||||
unsigned char c7[] = { 'a', 'b', 'c', 'd', 'e', 'f', 'g' };
|
||||
|
||||
|
@ -780,7 +780,7 @@ static void test_sms_handling()
|
|||
g_free(packed);
|
||||
}
|
||||
|
||||
static void test_offset_handling()
|
||||
static void test_offset_handling(void)
|
||||
{
|
||||
unsigned char c7[] = { 'a', 'b', 'c', 'd', 'e', 'f', 'g' };
|
||||
unsigned char c8[] = { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h' };
|
||||
|
@ -880,7 +880,7 @@ static unsigned char sim_82_1[] = { 0x82, 0x05, 0x04, 0x00, 0x2D, 0xB3, 0xB4,
|
|||
static unsigned char sim_82_2[] = { 0x82, 0x05, 0xD8, 0x00, 0x2D, 0xB3, 0xB4,
|
||||
0x2D, 0x31 };
|
||||
|
||||
static void test_sim()
|
||||
static void test_sim(void)
|
||||
{
|
||||
char *utf8;
|
||||
|
||||
|
@ -930,7 +930,7 @@ static void test_sim()
|
|||
g_assert(utf8 == NULL);
|
||||
}
|
||||
|
||||
static void test_unicode_to_gsm()
|
||||
static void test_unicode_to_gsm(void)
|
||||
{
|
||||
long nwritten;
|
||||
long nread;
|
||||
|
|
Loading…
Reference in New Issue