From 0a13c0a9bfd1a7cff850d60851500aea34dffa6d Mon Sep 17 00:00:00 2001 From: Sam Hartman Date: Wed, 28 Sep 2011 20:57:15 +0000 Subject: [PATCH] Windows fixes: remove unreferenced; use sizeof to compute array size Signed-off-by: Kevin Wasserman git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25272 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/gssapi/mechglue/g_initialize.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/gssapi/mechglue/g_initialize.c b/src/lib/gssapi/mechglue/g_initialize.c index e0bbd5ae5..603387c7e 100644 --- a/src/lib/gssapi/mechglue/g_initialize.c +++ b/src/lib/gssapi/mechglue/g_initialize.c @@ -1203,7 +1203,7 @@ getRegKeyModTime(HKEY hBaseKey, const char *keyPath) return 0; } do { - int subKeyNameSize=256; + int subKeyNameSize=sizeof(subKeyName)/sizeof(subKeyName[0]); if ((rc = RegEnumKeyEx(hConfigKey, iSubKey++, subKeyName, &subKeyNameSize, NULL, NULL, NULL, &keyLastWriteTime)) != ERROR_SUCCESS) { @@ -1253,7 +1253,6 @@ loadConfigFromRegistry(HKEY hBaseKey, const char *keyPath) { HKEY hConfigKey; DWORD iSubKey, nSubKeys, maxSubKeyNameLen; - DWORD dataBufferSize, dataSizeRequired; char *oidStr = NULL, *oid = NULL, *sharedLib = NULL, *kernMod = NULL; char *modOptions = NULL; DWORD oidStrLen = 0, oidLen = 0, sharedLibLen = 0, kernModLen = 0; -- 2.26.2