Style: Various issues

This commit is contained in:
Denis Kenzior 2010-01-12 10:33:09 -06:00
parent 2cde0841aa
commit 60a0fc5a5c
2 changed files with 9 additions and 7 deletions

View File

@ -186,7 +186,7 @@ static void test_mux(void)
GAtSyntax *syntax;
int sk;
sk= do_connect("192.168.0.202", 2000);
sk = do_connect("192.168.0.202", 2000);
if (sk < 0) {
g_printerr("connect failed\n");
return;
@ -392,7 +392,8 @@ static void test_extract_basic()
/* Try to read with just the open flag */
nread = gsm0710_basic_extract_frame(basic_input + total,
basic_frame_size + 1, &dlc, &ctrl,
basic_frame_size + 1,
&dlc, &ctrl,
&frame, &frame_size);
g_assert(nread == 0);
@ -400,7 +401,8 @@ static void test_extract_basic()
/* Now read with the close flag as well */
nread = gsm0710_basic_extract_frame(basic_input + total,
basic_frame_size + 2, &dlc, &ctrl,
basic_frame_size + 2,
&dlc, &ctrl,
&frame, &frame_size);
/* Extracted the open flag + frame */

View File

@ -867,17 +867,17 @@ static void test_sim()
utf8 = sim_string_to_utf8(sim_80_1, sizeof(sim_80_1));
g_assert(utf8);
g_assert(strcmp(utf8, "ono") == 0 );
g_assert(strcmp(utf8, "ono") == 0);
g_free(utf8);
utf8 = sim_string_to_utf8(sim_80_2, sizeof(sim_80_2));
g_assert(utf8);
g_assert(strcmp(utf8, "ono") == 0 );
g_assert(strcmp(utf8, "ono") == 0);
g_free(utf8);
utf8 = sim_string_to_utf8(sim_80_3, sizeof(sim_80_3));
g_assert(utf8);
g_assert(strcmp(utf8, "ono") == 0 );
g_assert(strcmp(utf8, "ono") == 0);
g_free(utf8);
utf8 = sim_string_to_utf8(sim_81_0, sizeof(sim_81_0));
@ -890,7 +890,7 @@ static void test_sim()
utf8 = sim_string_to_utf8(sim_81_1, sizeof(sim_81_1));
g_assert(utf8);
g_assert(strcmp(utf8, "ono") == 0 );
g_assert(strcmp(utf8, "ono") == 0);
g_free(utf8);
utf8 = sim_string_to_utf8(sim_82_0, sizeof(sim_82_0));