All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <4C28989E.9010300@bfs.de>

diff --git a/a/1.txt b/N1/1.txt
index afde88b..7b9d4eb 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -28,7 +28,7 @@ Kulikov Vasiliy schrieb:
 >  
 > -	for (i = 0, found = 0; (i < N(regDomainPairs)) && (!found); i++) {
 > +	for (i = 0, found = 0; (i < ARRAY_SIZE(regDomainPairs)) && (!found); i++) {
->  		if (regDomainPairs[i].regDmnEnum = regionCode) {
+>  		if (regDomainPairs[i].regDmnEnum == regionCode) {
 >  			regPair = &regDomainPairs[i];
 >  			found = 1;
 
@@ -47,7 +47,7 @@ just my two cents,
 >  
 > -	for (i = 0 ; i < N(regDomains) ; i++) {
 > +	for (i = 0 ; i < ARRAY_SIZE(regDomains) ; i++) {
->  		if (regDomains[i].regDmnEnum = regDmn) {
+>  		if (regDomains[i].regDmnEnum == regDmn) {
 >  			if (rd != NULL) {
 >  					zfMemoryCopy((u8_t *)rd, (u8_t *)&regDomains[i],
 > @@ -1653,7 +1650,7 @@ void zfHpGetRegulationTable(zdev_t *dev, u16_t regionCode, u16_t c_lo, u16_t c_h
@@ -65,7 +65,7 @@ just my two cents,
 >  
 > -	for (i = 0; i < N(allCountries); i++) {
 > +	for (i = 0; i < ARRAY_SIZE(allCountries); i++) {
->  		if (CountryCode = allCountries[i].countryCode) {
+>  		if (CountryCode == allCountries[i].countryCode) {
 >  			RegDomain = allCountries[i].regDmnEnum;
 >  
 > @@ -1881,7 +1878,7 @@ u8_t zfHpGetRegulationTablefromISO(zdev_t *dev, u8_t *countryInfo, u8_t length)
@@ -83,7 +83,7 @@ just my two cents,
 >  
 > -	for (i = 0; i < N(allCountries); i++) {
 > +	for (i = 0; i < ARRAY_SIZE(allCountries); i++) {
->  		if (allCountries[i].regDmnEnum = regionCode)
+>  		if (allCountries[i].regDmnEnum == regionCode)
 >  			return allCountries[i].isoName;
 >  	}
 > @@ -1953,7 +1950,7 @@ u16_t zfHpGetRegionCodeFromIsoName(zdev_t *dev, u8_t *countryIsoName)
diff --git a/a/content_digest b/N1/content_digest
index 18dae7f..bc9e8ee 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -1,7 +1,7 @@
  "ref\01277726125-24765-1-git-send-email-segooon@gmail.com\0"
  "From\0walter harms <wharms@bfs.de>\0"
  "Subject\0Re: [PATCH 11/16] trivial: use ARRAY_SIZE\0"
- "Date\0Mon, 28 Jun 2010 12:42:06 +0000\0"
+ "Date\0Mon, 28 Jun 2010 14:42:06 +0200\0"
  "To\0Kulikov Vasiliy <segooon@gmail.com>\0"
  "Cc\0trivial@kernel.org"
   Kernel Janitors <kernel-janitors@vger.kernel.org>
@@ -42,7 +42,7 @@
  ">  \n"
  "> -\tfor (i = 0, found = 0; (i < N(regDomainPairs)) && (!found); i++) {\n"
  "> +\tfor (i = 0, found = 0; (i < ARRAY_SIZE(regDomainPairs)) && (!found); i++) {\n"
- ">  \t\tif (regDomainPairs[i].regDmnEnum = regionCode) {\n"
+ ">  \t\tif (regDomainPairs[i].regDmnEnum == regionCode) {\n"
  ">  \t\t\tregPair = &regDomainPairs[i];\n"
  ">  \t\t\tfound = 1;\n"
  "\n"
@@ -61,7 +61,7 @@
  ">  \n"
  "> -\tfor (i = 0 ; i < N(regDomains) ; i++) {\n"
  "> +\tfor (i = 0 ; i < ARRAY_SIZE(regDomains) ; i++) {\n"
- ">  \t\tif (regDomains[i].regDmnEnum = regDmn) {\n"
+ ">  \t\tif (regDomains[i].regDmnEnum == regDmn) {\n"
  ">  \t\t\tif (rd != NULL) {\n"
  ">  \t\t\t\t\tzfMemoryCopy((u8_t *)rd, (u8_t *)&regDomains[i],\n"
  "> @@ -1653,7 +1650,7 @@ void zfHpGetRegulationTable(zdev_t *dev, u16_t regionCode, u16_t c_lo, u16_t c_h\n"
@@ -79,7 +79,7 @@
  ">  \n"
  "> -\tfor (i = 0; i < N(allCountries); i++) {\n"
  "> +\tfor (i = 0; i < ARRAY_SIZE(allCountries); i++) {\n"
- ">  \t\tif (CountryCode = allCountries[i].countryCode) {\n"
+ ">  \t\tif (CountryCode == allCountries[i].countryCode) {\n"
  ">  \t\t\tRegDomain = allCountries[i].regDmnEnum;\n"
  ">  \n"
  "> @@ -1881,7 +1878,7 @@ u8_t zfHpGetRegulationTablefromISO(zdev_t *dev, u8_t *countryInfo, u8_t length)\n"
@@ -97,7 +97,7 @@
  ">  \n"
  "> -\tfor (i = 0; i < N(allCountries); i++) {\n"
  "> +\tfor (i = 0; i < ARRAY_SIZE(allCountries); i++) {\n"
- ">  \t\tif (allCountries[i].regDmnEnum = regionCode)\n"
+ ">  \t\tif (allCountries[i].regDmnEnum == regionCode)\n"
  ">  \t\t\treturn allCountries[i].isoName;\n"
  ">  \t}\n"
  "> @@ -1953,7 +1950,7 @@ u16_t zfHpGetRegionCodeFromIsoName(zdev_t *dev, u8_t *countryIsoName)\n"
@@ -110,4 +110,4 @@
  ">  \t\t\tregionCode = allCountries[i].regDmnEnum;\n"
  ">  \t\tbreak;"
 
-fb9b594978a16dd3b01b495c450b5881a014d144cc7938b173fc959619dada70
+02a41270ddbc1d783aa9fc87da761c8b3bdc149e383daa59edfaaea18f33f2d2

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.