diff options
author | Sean Bright <sean.bright@gmail.com> | 2017-12-22 09:23:22 -0500 |
---|---|---|
committer | Sean Bright <sean.bright@gmail.com> | 2017-12-22 09:23:22 -0500 |
commit | fd0ca1c3f9b972a52d48a82b492fd6bac772dc78 (patch) | |
tree | 42d2a87726d196f4db1c68489007520a4c597062 /addons/ooh323c/src/dlist.c | |
parent | 9ef97b5a9191e51f1edc66bb17728fd9fe552c35 (diff) |
Remove as much trailing whitespace as possible.
Change-Id: I873c1c6d00f447269bd841494459efccdd2c19c0
Diffstat (limited to 'addons/ooh323c/src/dlist.c')
-rw-r--r-- | addons/ooh323c/src/dlist.c | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/addons/ooh323c/src/dlist.c b/addons/ooh323c/src/dlist.c index 71dd9ee11..12b15b152 100644 --- a/addons/ooh323c/src/dlist.c +++ b/addons/ooh323c/src/dlist.c @@ -1,15 +1,15 @@ /* * Copyright (C) 1997-2005 by Objective Systems, Inc. * - * This software is furnished under an open source license and may be - * used and copied only in accordance with the terms of this license. - * The text of the license may generally be found in the root - * directory of this installation in the COPYING file. It + * This software is furnished under an open source license and may be + * used and copied only in accordance with the terms of this license. + * The text of the license may generally be found in the root + * directory of this installation in the COPYING file. It * can also be viewed online at the following URL: * * http://www.obj-sys.com/open/license.html * - * Any redistributions of this file including modified versions must + * Any redistributions of this file including modified versions must * maintain this copyright notice. * *****************************************************************************/ @@ -30,7 +30,7 @@ void dListInit (DList* pList) DListNode* dListAppend (OOCTXT* pctxt, DList* pList, void* pData) { - DListNode* pListNode = (DListNode*) + DListNode* pListNode = (DListNode*) memAlloc (pctxt, sizeof(DListNode)); if (0 != pListNode) { @@ -53,7 +53,7 @@ DListNode* dListAppend (OOCTXT* pctxt, DList* pList, void* pData) DListNode* dListAppendNode (OOCTXT* pctxt, DList* pList, void* pData) { - DListNode* pListNode = + DListNode* pListNode = (DListNode*) (((char*)pData) - sizeof(DListNode)); if (0 != pListNode) { @@ -109,7 +109,7 @@ void dListFreeAll (OOCTXT* pctxt, DList* pList) for (pNode = pList->head; pNode != 0; pNode = pNextNode) { pNextNode = pNode->next; - + memFreePtr (pctxt, pNode->data); memFreePtr (pctxt, pNode); } @@ -148,8 +148,8 @@ void dListFindAndRemove(struct OOCTXT* pctxt, DList* pList, void *data) memFreePtr(pctxt, pNode); } } - -DListNode* dListFindByIndex (DList* pList, int index) + +DListNode* dListFindByIndex (DList* pList, int index) { DListNode* curNode; int i; @@ -163,11 +163,11 @@ DListNode* dListFindByIndex (DList* pList, int index) /* Insert item before given node */ -DListNode* dListInsertBefore +DListNode* dListInsertBefore (OOCTXT* pctxt, DList* pList, DListNode* node, const void* pData) { DListNode* pListNode = (DListNode*) memAlloc (pctxt, sizeof(DListNode)); - + if (0 != pListNode) { pListNode->data = (void*)pData; @@ -212,7 +212,7 @@ DListNode* dListInsertBefore /* Insert item after given node */ -DListNode* dListInsertAfter +DListNode* dListInsertAfter (OOCTXT* pctxt, DList* pList, DListNode* node, const void* pData) { DListNode* pListNode = (DListNode*) memAlloc (pctxt, sizeof(DListNode)); @@ -258,4 +258,3 @@ DListNode* dListInsertAfter return pListNode; } - |