From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aneesh V Date: Mon, 16 May 2011 15:58:40 +0530 Subject: [U-Boot] [PATCH v2 01/22] mkimage: Add OMAP boot image support In-Reply-To: <201105152255.08249.vapier@gentoo.org> References: <1298893591-17636-1-git-send-email-aneesh@ti.com> <1305472900-4004-2-git-send-email-aneesh@ti.com> <201105152152.54859.vapier@gentoo.org> <201105152255.08249.vapier@gentoo.org> Message-ID: <4DD0FC58.7040007@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Mike, On Monday 16 May 2011 08:25 AM, Mike Frysinger wrote: > On Sunday, May 15, 2011 21:52:53 Mike Frysinger wrote: >> On Sunday, May 15, 2011 11:21:19 Aneesh V wrote: >>> +static void omapimage_print_header(const void *ptr) >>> +{ >>> + struct ch_toc *toc = (struct ch_toc *)ptr; >> >> you're casting away the void. something is fundamentally broken here. > > err, obviously i meant "const" instead of "void" ... > -mike This is not my code. But I don't think it was intentional. The following didn't seem to cause any trouble. I shall add this fix in the next revision if this looks ok. static void omapimage_print_header(const void *ptr) { - struct ch_toc *toc = (struct ch_toc *)ptr; + const struct ch_toc *toc = (const struct ch_toc *)ptr; > > > > _______________________________________________ > U-Boot mailing list > U-Boot at lists.denx.de > http://lists.denx.de/mailman/listinfo/u-boot