Re: [PATCH 10/16] add file detection support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox


[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux