From 734e9a4461d2a9cd8d47c726b4284c5967c20c68 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Sun, 27 Sep 2015 21:08:15 -0700 Subject: [PATCH] Fix NT_GetEntryInfo implementation signature to match header. Fixes #25. --- src/ntcore_c.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ntcore_c.cpp b/src/ntcore_c.cpp index c605944e6b..d7a58e8468 100644 --- a/src/ntcore_c.cpp +++ b/src/ntcore_c.cpp @@ -146,9 +146,8 @@ void NT_DeleteEntry(const char *name, unsigned int name_len) { void NT_DeleteAllEntries(void) { nt::DeleteAllEntries(); } -struct NT_EntryInfo *NT_GetEntryInfo(const char *prefix, - unsigned int prefix_len, int types, - unsigned int *count) { +struct NT_EntryInfo *NT_GetEntryInfo(const char *prefix, size_t prefix_len, + unsigned int types, size_t *count) { auto info_v = nt::GetEntryInfo(StringRef(prefix, prefix_len), types); *count = info_v.size(); if (info_v.size() == 0) return nullptr;