From: Sam Hartman Date: Wed, 28 Sep 2011 20:57:15 +0000 (+0000) Subject: Windows fixes: remove unreferenced; use sizeof to compute array size X-Git-Tag: krb5-1.10-alpha1~103 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0a13c0a9bfd1a7cff850d60851500aea34dffa6d;p=krb5.git 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 --- 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;