summaryrefslogtreecommitdiff
path: root/src/core/nodelist.c
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2012-09-10 19:14:49 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2012-09-10 19:14:49 +0100
commit9d45f44c90fcf800d1b865351fd083b19570ca57 (patch)
treec2b056265adfe7acd76596ab5433d2ce7f227cd3 /src/core/nodelist.c
parentc47dccdcb38dbf7a84892990cd56c8263e077953 (diff)
downloadlibdom-9d45f44c90fcf800d1b865351fd083b19570ca57.tar.gz
libdom-9d45f44c90fcf800d1b865351fd083b19570ca57.tar.bz2
unsigned long -> uint32_t, signed long and long -> int32_t, plus collateral fixes. Test suite does not pass
Diffstat (limited to 'src/core/nodelist.c')
-rw-r--r--src/core/nodelist.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/nodelist.c b/src/core/nodelist.c
index 8ce9475..e2a1435 100644
--- a/src/core/nodelist.c
+++ b/src/core/nodelist.c
@@ -196,10 +196,10 @@ void dom_nodelist_unref(dom_nodelist *list)
* \param length Pointer to location to receive length
* \return DOM_NO_ERR.
*/
-dom_exception dom_nodelist_get_length(dom_nodelist *list, unsigned long *length)
+dom_exception dom_nodelist_get_length(dom_nodelist *list, uint32_t *length)
{
dom_node_internal *cur = list->root->first_child;
- unsigned long len = 0;
+ uint32_t len = 0;
/* Traverse data structure */
while (cur != NULL) {
@@ -300,10 +300,10 @@ dom_exception dom_nodelist_get_length(dom_nodelist *list, unsigned long *length)
* should unref the node once it has finished with it.
*/
dom_exception _dom_nodelist_item(dom_nodelist *list,
- unsigned long index, dom_node **node)
+ uint32_t index, dom_node **node)
{
dom_node_internal *cur = list->root->first_child;
- unsigned long count = 0;
+ uint32_t count = 0;
/* Traverse data structure */
while (cur != NULL) {