diff options
author | George Hazan <george.hazan@gmail.com> | 2012-07-18 17:17:20 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-07-18 17:17:20 +0000 |
commit | 43987a12a08c3a656ba4401c727214096c046a5a (patch) | |
tree | 24098acc7172817a2e3b79fc5b792e44b88cb571 /plugins/Dbx_mmap_SA/dbpreset.cpp | |
parent | d3a1b7b40f4bd53a467a5b15b426b6f3d6ea1088 (diff) |
code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@1019 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dbx_mmap_SA/dbpreset.cpp')
-rw-r--r-- | plugins/Dbx_mmap_SA/dbpreset.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Dbx_mmap_SA/dbpreset.cpp b/plugins/Dbx_mmap_SA/dbpreset.cpp index e690dc1aaa..0334f8f5d8 100644 --- a/plugins/Dbx_mmap_SA/dbpreset.cpp +++ b/plugins/Dbx_mmap_SA/dbpreset.cpp @@ -133,7 +133,7 @@ int InitPreset() char *pszValue,*pszEnd;
buf = (PBYTE)mir_alloc(lstrlenA(szValue+1));
- for(len = 0,pszValue = szValue+1;;len++) {
+ for (len = 0,pszValue = szValue+1;;len++) {
buf[len] = (BYTE)strtol(pszValue,&pszEnd,0x10);
if (pszValue == pszEnd) break;
pszValue = pszEnd;
@@ -275,13 +275,13 @@ static void DBPresetItem_Hash(DBPresetItem *item) int i;
int shift = 0;
item->dwHash = 0;
- for(i = 0;item->szModule[i];i++)
+ for (i = 0;item->szModule[i];i++)
{
item->dwHash ^= item->szModule[i]<<shift;
if (shift>24) item->dwHash ^= (item->szModule[i]>>(32-shift))&0x7F;
shift = (shift+5)&0x1F;
}
- for(i = 0;item->szSetting[i];i++)
+ for (i = 0;item->szSetting[i];i++)
{
item->dwHash ^= item->szSetting[i]<<shift;
if (shift>24) item->dwHash ^= (item->szSetting[i]>>(32-shift))&0x7F;
|