Re: [PATCH 4/5] lsusb: constify!

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

 



On Mon, Oct 25, 2010 at 04:11:06AM -0500, Mike Frysinger wrote:
On Mon, Oct 25, 2010 at 4:43 AM, Felipe Balbi wrote:
On Mon, Oct 25, 2010 at 02:09:51AM -0500, Mike Frysinger wrote:

+static const char * const encryption_type[] = {

const const ?? -ECONFUSED

this declares a non-const array to a bunch of const pointers:
 const char *foo[] = { "moo" };
this declares a const array to a bunch of const pointers:
 const char * const foo[] = { "moo" };

oops, sorry about that. you're right :-)

--
balbi
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux