This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: [PATCH] Small fix for misc/sys/syslog.h
- From: Roland McGrath <roland at redhat dot com>
- To: Ulrich Drepper <drepper at redhat dot com>
- Cc: GOTO Masanori <gotom at debian dot or dot jp>, libc-alpha at sources dot redhat dot com
- Date: Mon, 14 Feb 2005 14:31:57 -0800
- Subject: 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.