From: Wolfgang Denk Date: Thu, 28 Apr 2011 00:55:29 +0200 Subject: [U-Boot] [PATCH v2] lib/hashtable: fix env var autocompletion In-Reply-To: <20110405121450.099cb324.kim.phillips@freescale.com> References: <20110404201745.3ffc30cb.kim.phillips@freescale.com> <201104042153.16448.vapier@gentoo.org> <4D9A9E41.9000901@logicpd.com> <20110405121450.099cb324.kim.phillips@freescale.com> Message-ID: <20110427225529.F37D7D52707@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Kim Phillips, In message <20110405121450.099cb324.kim.phillips@freescale.com> you wrote: > commit c81c1222427f268d29ba999c82e2477c428e7bab "Fix hash > table deletion to prevent lost entries" broke environment > variable autocompletion by accidentally inverting the > condition for 'used' in hmatch_r(). > > 'used' is 0 if the hash table entry is not used, or -1 if deleted. > This patch makes hmatch_r actually match on valid ('used') entries, > instead of skipping them and failing to match anything. > > Signed-off-by: Kim Phillips > --- > v2: fix commit message to point to correct source of failure Applied, thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Beware of the Turing Tar-pit in which everything is possible but nothing of interest is easy.