summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cesar/cp2/msg/test/src/cl_stub.c27
-rw-r--r--cesar/cp2/sta/mgr/test/src/cl_stub.c2
-rw-r--r--cesar/interface/sniffer/src/sniffer.c8
-rw-r--r--cesar/mac/sar/test/src/reassembly_unit_test_functions.c10
4 files changed, 24 insertions, 23 deletions
diff --git a/cesar/cp2/msg/test/src/cl_stub.c b/cesar/cp2/msg/test/src/cl_stub.c
index 6c24a2ba02..e9ff2f1556 100644
--- a/cesar/cp2/msg/test/src/cl_stub.c
+++ b/cesar/cp2/msg/test/src/cl_stub.c
@@ -9,17 +9,18 @@
* \file cl/cl_mactotei.h
* \brief mac to tei table interface between the CL and the CP
* \ingroup cl
- *
- */
+ *
+ */
#include "common/std.h"
#include "cl/cl_mactotei.h"
#include "lib/bitstream.h"
+#include <string.h>
/**
* Create a new table to be filled by the CP.
- *
- * \return a pointer to the new block to be fill with the mac to tei table
+ *
+ * \return a pointer to the new block to be fill with the mac to tei table
* data
*/
cl_mactotei_blk_t *
@@ -34,7 +35,7 @@ cl_mactotei_new (void)
/**
* Add a new tupple of data to the table.
- *
+ *
* \param table the table pointer to add a new mac to tei correspondance.
* \param mac_addr the mac addr to add
* \param tei the tei corresponding to the STA.
@@ -65,12 +66,12 @@ void cl_mactotei_addr_add (cl_mactotei_blk_t *table, mac_t mac_addr,
/**
* Request the CL to copy all the data corresponding to the tag.
- *
+ *
* \param ctx the cl context.
* \param table the mactotei new table to fill
* \param tag the tag to copy
*/
-void
+void
cl_mactotei_copy_tag (cl_t *ctx,
cl_mactotei_blk_t *table, u8 tag)
{
@@ -78,13 +79,13 @@ cl_mactotei_copy_tag (cl_t *ctx,
/**
* Request the CL to copy all the data corresponding to the tag and the tei.
- *
+ *
* \param ctx the cl context.
* \param table the mactotei new table to fill
* \param tei the tei to copy.
* \param tag the tag to copy
*/
-void
+void
cl_mactotei_copy_tei_and_tag (cl_t *ctx,
cl_mactotei_blk_t *table, u8 tei, u8 tag)
{
@@ -92,9 +93,9 @@ cl_mactotei_copy_tei_and_tag (cl_t *ctx,
/**
* Request the CL to use the new table and remove the old one.
- *
+ *
* \param ctx the CL context
- * \param table the new table to use.
+ * \param table the new table to use.
*/
void
cl_mactotei_use_table (cl_t *ctx, cl_mactotei_blk_t *table)
@@ -102,14 +103,14 @@ cl_mactotei_use_table (cl_t *ctx, cl_mactotei_blk_t *table)
dbg_assert (ctx);
dbg_assert (table);
- bitstream_memcpy ((u8 *) ctx, (u8 *)table, 512) ;
+ memcpy ((u8 *) ctx, (u8 *)table, 512) ;
blk_release (table);
}
/**
* Release the complete table from the memory.
- *
+ *
* \param ctx the convergence layer context
*/
void cl_mactotei_release_table (cl_t *ctx)
diff --git a/cesar/cp2/sta/mgr/test/src/cl_stub.c b/cesar/cp2/sta/mgr/test/src/cl_stub.c
index 6c24a2ba02..ca78f053a9 100644
--- a/cesar/cp2/sta/mgr/test/src/cl_stub.c
+++ b/cesar/cp2/sta/mgr/test/src/cl_stub.c
@@ -34,7 +34,7 @@ cl_mactotei_new (void)
/**
* Add a new tupple of data to the table.
- *
+ *
* \param table the table pointer to add a new mac to tei correspondance.
* \param mac_addr the mac addr to add
* \param tei the tei corresponding to the STA.
diff --git a/cesar/interface/sniffer/src/sniffer.c b/cesar/interface/sniffer/src/sniffer.c
index d258011e87..45d9f890a6 100644
--- a/cesar/interface/sniffer/src/sniffer.c
+++ b/cesar/interface/sniffer/src/sniffer.c
@@ -7,7 +7,7 @@
* }}} */
/**
* \file interface/sniffer/src/sniffer.c
- * \brief Sniffer source functions.
+ * \brief Sniffer source functions.
* \ingroup interface_sniffer
*
* « long description »
@@ -102,7 +102,7 @@ interface_sniffer_copy_mme (interface_sniffer_t *ctx, u8 *mme, uint length,
/** Request the interface to send the message to the linux driver. */
- (*ctx->send_func) (ctx->send_user_data, word, 2);
+ (*ctx->send_func) (ctx->send_user_data, word, 2);
}
/** Copy a beacon to the buffer and request the interface to send the copied beacon.
@@ -191,7 +191,7 @@ bool
interface_sniffer_mme_status (interface_sniffer_t *ctx, bool tx)
{
dbg_assert (ctx);
-
+
if (tx)
return ctx->sniff_mme_tx;
else
@@ -230,5 +230,5 @@ interface_sniffer_status (interface_sniffer_t *ctx)
(SNIFF_BEACON_TX, ctx->sniff_beacon_tx),
(SNIFF_BEACON_RX, ctx->sniff_beacon_rx));
- return res;
+ return res;
}
diff --git a/cesar/mac/sar/test/src/reassembly_unit_test_functions.c b/cesar/mac/sar/test/src/reassembly_unit_test_functions.c
index dd147f3894..ee86ec6295 100644
--- a/cesar/mac/sar/test/src/reassembly_unit_test_functions.c
+++ b/cesar/mac/sar/test/src/reassembly_unit_test_functions.c
@@ -36,7 +36,7 @@ write_mfh (u8 *addr, uint length, uint type, uint ats)
if (type > 1)
{
length += SAR_MF_ATS_SIZE - 1;
-
+
bitstream_init (&bitstream, addr, 6, BITSTREAM_WRITE);
bitstream_access (&bitstream, &type, 2);
bitstream_access (&bitstream, &length, 14);
@@ -159,11 +159,11 @@ void sar_unit_test_generate_pb_list (pb_t **first, pb_t **last)
write_mfh (pb_list[10]->data + 431, length, type, ats);
// Repeat the PB with the ssn = 1.
- bitstream_memcpy (&pb_list[12]->header, &pb_list[1]->header, 4);
- bitstream_memcpy (pb_list[12]->data, pb_list[1]->data, 512);
+ bitstream_memcpy (&pb_list[12]->header, &pb_list[1]->header, 4);
+ bitstream_memcpy (pb_list[12]->data, pb_list[1]->data, 512);
- bitstream_memcpy (&pb_list[13]->header, &pb_list[10]->header, 4);
- bitstream_memcpy (pb_list[13]->data, pb_list[10]->data, 512);
+ bitstream_memcpy (&pb_list[13]->header, &pb_list[10]->header, 4);
+ bitstream_memcpy (pb_list[13]->data, pb_list[10]->data, 512);
*first = pb_list[6];
pb_list[6]->next= pb_list[2];