Create a branch for header work.
[reactos.git] / lib / cmlib / hivecell.c
index c87ba71..994ca98 100644 (file)
@@ -9,7 +9,7 @@
 #define NDEBUG
 #include <debug.h>
 
-static PHCELL __inline CMAPI
+static __inline PHCELL CMAPI
 HvpGetCellHeader(
    PHHIVE RegistryHive,
    HCELL_INDEX CellIndex)
@@ -74,11 +74,12 @@ HvGetCell(
    return (PVOID)(HvpGetCellHeader(RegistryHive, CellIndex) + 1);
 }
 
-static LONG __inline CMAPI
+static __inline LONG CMAPI
 HvpGetCellFullSize(
    PHHIVE RegistryHive,
    PVOID Cell)
 {
+   UNREFERENCED_PARAMETER(RegistryHive);
    return ((PHCELL)Cell - 1)->Size;
 }
 
@@ -89,6 +90,8 @@ HvGetCellSize(IN PHHIVE Hive,
    PHCELL CellHeader;
    LONG Size;
 
+   UNREFERENCED_PARAMETER(Hive);
+
    CellHeader = (PHCELL)Address - 1;
    Size = CellHeader->Size * -1;
    Size -= sizeof(HCELL);
@@ -141,7 +144,7 @@ HvIsCellDirty(IN PHHIVE Hive,
    return IsDirty;
 }
 
-static ULONG __inline CMAPI
+static __inline ULONG CMAPI
 HvpComputeFreeListIndex(
    ULONG Size)
 {
@@ -424,7 +427,7 @@ HvReallocateCell(
     * FIXME: Merge with adjacent free cell if possible.
     * FIXME: Implement shrinking.
     */
-   if (Size > OldCellSize)
+   if (Size > (ULONG)OldCellSize)
    {
       NewCellIndex = HvAllocateCell(RegistryHive, Size, Storage, HCELL_NIL);
       if (NewCellIndex == HCELL_NIL)