public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* memparse(), simple_strtoul() prototypes...
@ 2007-02-18 16:04 Francis Moreau
  2007-02-19  0:30 ` H. Peter Anvin
  0 siblings, 1 reply; 5+ messages in thread
From: Francis Moreau @ 2007-02-18 16:04 UTC (permalink / raw)
  To: linux-kernel

Hi,

I must miss something...

Looking at these prototypes

unsigned long simple_strtoul(const char *cp, char **endp,unsigned int base)
unsigned long long memparse (char *ptr, char **retptr)

I'm really wondering why not all parameters are not all 'const'. None
of these functions modify any pointer containts. And simple_strtoul()
ends up doing sometghing like:

if (endp)
		*endp = (char *)cp;

Could anyone shed some light ?
-- 
Francis

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-02-20  8:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-18 16:04 memparse(), simple_strtoul() prototypes Francis Moreau
2007-02-19  0:30 ` H. Peter Anvin
2007-02-19 13:03   ` Francis Moreau
2007-02-19 14:05     ` Avi Kivity
2007-02-20  8:19       ` Francis Moreau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox