port.c: MagAtof() constify and add prototype
This commit is contained in:
parent
14a8409e40
commit
5b97638ac7
|
|
@ -42,7 +42,7 @@ static char rcsid[] __attribute__ ((unused)) = "$Header: /usr/cvsroot/magic-8.0/
|
|||
|
||||
float
|
||||
MagAtof(s)
|
||||
char *s;
|
||||
const char *s;
|
||||
{
|
||||
#ifdef linux
|
||||
float flt;
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ extern gzFile flock_zopen();
|
|||
*/
|
||||
#define LAST_BIT_OF(x) ((x) & ~((x) - 1))
|
||||
|
||||
extern float MagAtof();
|
||||
extern float MagAtof(const char *s);
|
||||
|
||||
extern int Wait(int *status);
|
||||
extern int WaitPid(int pid, int *status);
|
||||
|
|
|
|||
Loading…
Reference in New Issue