From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by casper.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1RVTYe-0002uL-N3 for barebox@lists.infradead.org; Tue, 29 Nov 2011 19:41:37 +0000 Date: Tue, 29 Nov 2011 20:41:32 +0100 From: Sascha Hauer Message-ID: <20111129194132.GK27267@pengutronix.de> References: <1322518209-2965-1-git-send-email-s.hauer@pengutronix.de> <1322518209-2965-11-git-send-email-s.hauer@pengutronix.de> <4ED414C9.2010909@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <4ED414C9.2010909@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH 10/16] add file detection support To: Marc Kleine-Budde Cc: barebox@lists.infradead.org On Tue, Nov 29, 2011 at 12:10:01AM +0100, Marc Kleine-Budde wrote: > > + > > +const char *file_type_to_string(enum filetype f) > > +{ > > you can use an const array char pointers here: > > static const char *filetype_str[] = { > [filetype_unknown] = "unknown", > ... > } I thought this myself when seeing the result. I was too lazy... Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox