mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-31 16:20:13 +01:00
remove const from _mesa_strtof()
This commit is contained in:
parent
44257dacc0
commit
e1e446bf77
2 changed files with 5 additions and 5 deletions
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: imports.c,v 1.28 2003/01/14 03:02:13 brianp Exp $ */
|
||||
/* $Id: imports.c,v 1.29 2003/01/14 03:05:38 brianp Exp $ */
|
||||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
|
|
@ -379,12 +379,12 @@ _mesa_atoi(const char *s)
|
|||
|
||||
|
||||
float
|
||||
_mesa_strtof( const char *s, const char **end )
|
||||
_mesa_strtof( const char *s, char **end )
|
||||
{
|
||||
#if defined(XFree86LOADER) && defined(IN_MODULE)
|
||||
return xf86strtof(s, end);
|
||||
#else
|
||||
return strtod(s, end);
|
||||
return (float) strtod(s, end);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: imports.h,v 1.10 2003/01/14 03:00:54 brianp Exp $ */
|
||||
/* $Id: imports.h,v 1.11 2003/01/14 03:05:38 brianp Exp $ */
|
||||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
|
|
@ -174,7 +174,7 @@ extern int
|
|||
_mesa_atoi( const char *s );
|
||||
|
||||
extern float
|
||||
_mesa_strtof( const char *s, const char **end );
|
||||
_mesa_strtof( const char *s, char **end );
|
||||
|
||||
extern int
|
||||
_mesa_sprintf( char *str, const char *fmt, ... );
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue