aboutsummaryrefslogtreecommitdiff
path: root/tran.c
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2021-04-01 15:52:07 -0700
committerElliott Hughes <enh@google.com>2021-04-01 15:52:07 -0700
commit122058a1ed910b78d52f04cbc51c55b873926f49 (patch)
treea2c4655ada2f9fca785ba57990d414fb9a023b3d /tran.c
parent58129627d34059ddb7b774da7e7af70d55499b33 (diff)
parentc0f4e97e4561ff42544e92512bbaf3d7d1f6a671 (diff)
downloadone-true-awk-122058a1ed910b78d52f04cbc51c55b873926f49.tar.gz
Upgrade one-true-awk to c0f4e97e4561ff42544e92512bbaf3d7d1f6a671android-s-beta-2android-s-beta-1
Test: make Change-Id: I760100621547c69dc91147bd04b6b98207b67c3d
Diffstat (limited to 'tran.c')
-rw-r--r--tran.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tran.c b/tran.c
index add9d85..c6ae890 100644
--- a/tran.c
+++ b/tran.c
@@ -418,7 +418,7 @@ Awkfloat getfval(Cell *vp) /* get float val of a Cell */
return(vp->fval);
}
-static char *get_inf_nan(double d)
+static const char *get_inf_nan(double d)
{
if (isinf(d)) {
return (d < 0 ? "-inf" : "+inf");
@@ -432,7 +432,7 @@ static char *get_str_val(Cell *vp, char **fmt) /* get string val of a Cel
{
char s[256];
double dtemp;
- char *p;
+ const char *p;
if ((vp->tval & (NUM | STR)) == 0)
funnyvar(vp, "read value of");