Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: iothub_client_sample_http simplesample_http temp_sensor_anomaly
Revision 4:ce756a949fbd, committed 2015-09-29
- Comitter:
- AzureIoTClient
- Date:
- Tue Sep 29 17:02:00 2015 -0700
- Parent:
- 3:4e9296134ffb
- Child:
- 5:bcdad2e5c293
- Commit message:
- v1.0.0-preview.3
Changed in this revision
| iothubtransporthttp.c | Show annotated file Show diff for this revision Revisions of this file |
--- a/iothubtransporthttp.c Tue Sep 22 20:36:43 2015 -0700
+++ b/iothubtransporthttp.c Tue Sep 29 17:02:00 2015 -0700
@@ -921,11 +921,9 @@
static void reversePutListBackIn(PDLIST_ENTRY source, PDLIST_ENTRY destination)
{
/*this function takes a list, and inserts it in another list. When done in the context of this file, it reverses the effects of a not-able-to-send situation*/
- PDLIST_ENTRY afterHead;
- while ((afterHead = DList_RemoveHeadList(source)) != source)
- {
- DList_InsertHeadList(destination, afterHead);
- }
+ DList_AppendTailList(destination->Flink, source);
+ DList_RemoveEntryList(source);
+ DList_InitializeListHead(source);
}
static void DoEvent(TRANSPORT_HANDLE handle, IOTHUB_CLIENT_LL_HANDLE iotHubClientHandle)