port.c: MagAtof() constify and add prototype

This commit is contained in:
Darryl L. Miles
2024-12-26 15:20:58 -05:00
committed by Tim Edwards
parent 14a8409e40
commit 5b97638ac7
2 changed files with 2 additions and 2 deletions
+1 -1
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;
+1 -1
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);