Changeset 388
- Timestamp:
- Jul 22, 2010, 2:48:11 PM (15 years ago)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/branch-1-0/src/helpers/tree.c
r222 r388 218 218 + p, // new tree node 219 219 + fnCompare); // comparison func 220 + return (p);220 + return p; 221 221 + } 222 222 * … … 226 226 + int TREEENTRY fnCompare(ULONG ul1, ULONG ul2) 227 227 + { 228 + return (strcmp((const char*)ul1,229 + (const char*)ul2));228 + return strcmp((const char*)ul1, 229 + (const char*)ul2); 230 230 + } 231 231 * … … 332 332 int TREEENTRY treeCompareStrings(unsigned long ul1, unsigned long ul2) 333 333 { 334 #define p1 (const char*)(ul1)335 #define p2 (const char*)(ul2)334 const char *p1 = (const char*) ul1; 335 const char *p2 = (const char*) ul2; 336 336 337 337 if (p1 && p2) … … 760 760 (*plCount)--; // V0.9.16 (2001-10-19) [umoeller] 761 761 762 return (STATUS_OK);762 return STATUS_OK; 763 763 } 764 764 … … 999 999 } 1000 1000 1001 return (papNodes);1001 return papNodes; 1002 1002 } 1003 1003 -
trunk/src/helpers/tree.c
r238 r388 332 332 int TREEENTRY treeCompareStrings(unsigned long ul1, unsigned long ul2) 333 333 { 334 #define p1 (const char*)(ul1)335 #define p2 (const char*)(ul2)334 const char *p1 = (const char*) ul1; 335 const char *p2 = (const char*) ul2; 336 336 337 337 if (p1 && p2)
Note:
See TracChangeset
for help on using the changeset viewer.