This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Small fix for misc/sys/syslog.h


> GOTO Masanori wrote:
> > This patches does one modification and fixes one typo.  The type of
> > c_name in struct _code should be const char * for prioritynames
> > meanings - recent BSDs are also modified likewise.
> 
> What is the motivation for this change?  Saying "some bsd did it"
> certainly isn't sufficient.

The type is only used for the constant table, and the pointers always point
to string constants.  const is appropriate.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]