lkml.org 
[lkml]   [2011]   [Mar]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] proc: constify status array
On Wed, Mar 30, 2011 at 05:56, Alexey Dobriyan wrote:
> On Wed, Mar 30, 2011 at 9:09 AM, Mike Frysinger wrote:
>> -static const char *task_state_array[] = {
>> +static const char * const task_state_array[] = {
>
> Why this is needed for task_state_array, but not for, say, tgid_base_stuff?

tgid_base_stuff is already declared const. which your nm output clearly shows.

> This double const is ugly.

quite the opposite. not declaring const arrays const is ugly.
-mike


\
 
 \ /
  Last update: 2011-03-30 12:05    [W:0.328 / U:0.424 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site