memparse(), simple_strtoul() prototypes...

2007-02-18 Thread Francis Moreau
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 pointe

Re: memparse(), simple_strtoul() prototypes...

2007-02-18 Thread H. Peter Anvin
Francis Moreau wrote: 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 func

Re: memparse(), simple_strtoul() prototypes...

2007-02-19 Thread Francis Moreau
Hi, On 2/19/07, H. Peter Anvin <[EMAIL PROTECTED]> wrote: Francis Moreau wrote: > 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 real

Re: memparse(), simple_strtoul() prototypes...

2007-02-19 Thread Avi Kivity
Francis Moreau wrote: > unsigned long simple_strtoul(const char *cp, char **endp,unsigned int base) hm, I don't get your point. I understand why we cast 'cp' into a (char *) but that's not my point. My point is why aren't all function parameters are not const ? 'cp' can be passed as const, b

Re: memparse(), simple_strtoul() prototypes...

2007-02-20 Thread Francis Moreau
On 2/19/07, Avi Kivity <[EMAIL PROTECTED]> wrote: Francis Moreau wrote: >> > unsigned long simple_strtoul(const char *cp, char **endp,unsigned >> int base) > > hm, I don't get your point. I understand why we cast 'cp' into a (char > *) but that's not my point. My point is why aren't all function