Reformat code openqueue.c
Fix indentation and spacing in the file.
@@ -19,6 +19,7 @@ openqueue_vars_t openqueue_vars;
//=========================== prototypes ======================================
void openqueue_reset_entry(OpenQueueEntry_t *entry);
+
void openqueue_reset_big_entry(OpenQueueBigEntry_t *entry);
//=========================== public ==========================================
@@ -106,6 +107,7 @@ OpenQueueEntry_t* openqueue_getFreePacketBuffer(uint8_t creator) {
OpenQueueEntry_t* openqueue_getFreeBigPacketBuffer(uint8_t creator) {
uint8_t i;
+
INTERRUPT_DECLARATION();
DISABLE_INTERRUPTS();
@@ -384,6 +386,7 @@ OpenQueueEntry_t* openqueue_macGetDIOPacket(){
ENABLE_INTERRUPTS();
return NULL;
}
+
/**
\Brief replace the upstream packet nexthop payload by given newNextHop address
\param newNextHop.
@@ -463,7 +466,9 @@ void openqueue_reset_entry(OpenQueueEntry_t* entry) {
//admin
entry->creator = COMPONENT_NULL;
entry->owner = COMPONENT_NULL;
- entry->payload = &(entry->packet[IEEE802154_FRAME_SIZE - IEEE802154_SECURITY_TAG_LEN]); // Footer is longer if security is used
+
+ // Footer is longer if security is used
+ entry->payload = &(entry->packet[IEEE802154_FRAME_SIZE - IEEE802154_SECURITY_TAG_LEN]);
entry->length = 0;
entry->is_cjoin_response = FALSE;
entry->is_big_packet = FALSE;
@@ -492,5 +497,6 @@ void openqueue_reset_entry(OpenQueueEntry_t* entry) {
void openqueue_reset_big_entry(OpenQueueBigEntry_t *entry) {
openqueue_reset_entry(&(entry->standard_entry));
- entry->standard_entry.payload = &(entry->standard_entry.packet[IPV6_PACKET_SIZE]); // make pointer point to the end op the extended buffer
+ // make pointer point to the end op the extended buffer
+ entry->standard_entry.payload = &(entry->standard_entry.packet[IPV6_PACKET_SIZE]);
}
