port.c: MagAtof() constify and add prototype

This commit is contained in:
Darryl L. Miles 2024-10-12 09:22:11 +01:00 committed by Tim Edwards
parent 14a8409e40
commit 5b97638ac7
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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);