mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-23 19:46:31 +01:00
fix(gawk): make strtod patch apply cleanly by dropping obsolete declaration
This commit is contained in:
parent
197f1755e9
commit
e19f13fcd4
1 changed files with 7 additions and 8 deletions
|
|
@ -1,15 +1,14 @@
|
||||||
SPDX-License-Identifier: GPL-3.0-or-later
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
Fix legacy strtod declaration to match modern libc prototype.
|
Drop obsolete K&R-style strtod declaration in node.c.
|
||||||
|
|
||||||
--- gawk-4.2.1/node.c
|
--- gawk-4.2.1/node.c
|
||||||
+++ gawk-4.2.1/node.c
|
+++ gawk-4.2.1/node.c
|
||||||
@@ -62,7 +62,7 @@
|
@@ -62,7 +62,6 @@ r_force_number(NODE *n)
|
||||||
#endif
|
char *cpend;
|
||||||
|
char save;
|
||||||
#ifndef __STDC__
|
char *ptr;
|
||||||
- extern double strtod();
|
- extern double strtod();
|
||||||
+ extern double strtod(const char *, char **);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* r_force_number --- force a value to be numeric */
|
if ((n->flags & NUMCUR) != 0)
|
||||||
|
return n;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue