Source-Changes-D archive

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

Re: src/sys/modules/spdmem



On Fri, Aug 19, 2011 at 07:49:55PM +1000, matthew green wrote:
> > If it helped, then it would also be fine to change
> >      const char * format = "%s";
> > to
> >      const char * const format = "%s";
> > but it doesn't help.
> 
> martin discovered that this one works:
> 
>    const char fmt[] = "...";

Which is the better choice anyway as it saves 4 or 8 bytes of static data.

        Kind regards

-- 
Matthias Scheler                                  http://zhadum.org.uk/


Home | Main Index | Thread Index | Old Index