summaryrefslogtreecommitdiff
path: root/plugins/CountryFlags/ip2country.c
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-02 20:55:18 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-02 20:55:18 +0000
commit78c0815c4118fe24ab78cce2dc48a6232dcd824a (patch)
tree8512c50df70b8dd80c919e88ade3419207c95956 /plugins/CountryFlags/ip2country.c
parentce816d83a8c75808e0eb06832592bffefe4a8dc4 (diff)
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@270 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/CountryFlags/ip2country.c')
-rw-r--r--plugins/CountryFlags/ip2country.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/plugins/CountryFlags/ip2country.c b/plugins/CountryFlags/ip2country.c
index eae267aaa0..b892fabb83 100644
--- a/plugins/CountryFlags/ip2country.c
+++ b/plugins/CountryFlags/ip2country.c
@@ -211,34 +211,34 @@ static int EnumIpDataLines(const char *pszFileCSV,const char *pszFileOut)
buf=strchr(pszCountry,'"');
*buf=pszTwo[2]='\0';
/* corrections */
- if(!lstrcmpi(pszCountry,"ANTARCTICA")) continue;
- if(!lstrcmpi(pszCountry,"TIMOR-LESTE")) continue;
- if(!lstrcmpi(pszCountry,"PALESTINIAN TERRITORY, OCCUPIED"))
+ if (!lstrcmpi(pszCountry,"ANTARCTICA")) continue;
+ if (!lstrcmpi(pszCountry,"TIMOR-LESTE")) continue;
+ if (!lstrcmpi(pszCountry,"PALESTINIAN TERRITORY, OCCUPIED"))
lstrcpy(pszCountry,"ISRAEL");
- else if(!lstrcmpi(pszCountry,"UNITED STATES MINOR OUTLYING ISLANDS"))
+ else if (!lstrcmpi(pszCountry,"UNITED STATES MINOR OUTLYING ISLANDS"))
lstrcpy(pszCountry,"UNITED STATES");
- else if(!lstrcmpi(pszCountry,"SOUTH GEORGIA AND THE SOUTH SANDWICH ISLANDS"))
+ else if (!lstrcmpi(pszCountry,"SOUTH GEORGIA AND THE SOUTH SANDWICH ISLANDS"))
lstrcpy(pszCountry,"UNITED KINGDOM");
- else if(!lstrcmpi(pszTwo,"JE")) /* map error */
+ else if (!lstrcmpi(pszTwo,"JE")) /* map error */
lstrcpy(pszCountry,"UNITED KINGDOM");
- else if(!lstrcmpi(pszTwo,"AX")) /* Åland Island belongs to Finland */
+ else if (!lstrcmpi(pszTwo,"AX")) /* Åland Island belongs to Finland */
lstrcpy(pszCountry,"FINLAND");
- else if(!lstrcmpi(pszTwo,"ME"))
+ else if (!lstrcmpi(pszTwo,"ME"))
lstrcpy(pszCountry,"MONTENEGRO");
- else if(!lstrcmpi(pszTwo,"RS") || !lstrcmpi(pszTwo,"CS"))
+ else if (!lstrcmpi(pszTwo,"RS") || !lstrcmpi(pszTwo,"CS"))
lstrcpy(pszCountry,"SERBIA");
/* convert */
for(i=0;i<nCountriesCount;i++) {
/* map different writings */
for(j=0;j<SIZEOF(differentCountryNames);j++)
- if(!lstrcmpi(countries[i].szName,differentCountryNames[j].szMir)) {
+ if (!lstrcmpi(countries[i].szName,differentCountryNames[j].szMir)) {
buf=(char*)differentCountryNames[j].szCSV;
break;
}
if(j==SIZEOF(differentCountryNames))
buf=(char*)countries[i].szName;
/* check country */
- if(!lstrcmpiA(pszCountry,buf)) {
+ if (!lstrcmpiA(pszCountry,buf)) {
dwOut=(DWORD)atoi(pszFrom);
AppendToByteBuffer(&buffer,(void*)&dwOut,sizeof(DWORD));
dwOut=(DWORD)atoi(pszTo);