Lots of little cosmetic cleanups

This commit is contained in:
Steve Underwood committed 2013-03-14 21:22:51 +08:00
1 parent 16289ce9a4
commit d163c6338e
110 files changed
+7259 -762

No files matched your search

+3 -3
View File
@@ -60,7 +60,7 @@ int v14_test_async_tx_get_bit(void *user_data)
async_tx_state_t *s;
int bit;
static int destuff = 0;
/* Special routine to test V.14 rate adaption, by randomly skipping
stop bits. */
s = (async_tx_state_t *) user_data;
@@ -110,7 +110,7 @@ int v14_test_async_tx_get_bit(void *user_data)
static int test_get_async_byte(void *user_data)
{
int byte;
byte = tx_async_chars & 0xFF;
tx_async_chars++;
return byte;
@@ -150,7 +150,7 @@ int main(int argc, char *argv[])
printf("Test failed.\n");
exit(2);
}
printf("Test with async 7E1\n");
async_tx_init(&tx_async, 7, ASYNC_PARITY_EVEN, 1, FALSE, test_get_async_byte, NULL);
async_rx_init(&rx_async, 7, ASYNC_PARITY_EVEN, 1, FALSE, test_put_async_byte, NULL);