summaryrefslogtreecommitdiff
path: root/math.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2023-02-05 10:22:09 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2023-02-05 10:22:09 -0800
commitfc6543c0f9292880180531d656e80c903e8e7dfd (patch)
tree7ac1fc5fbfb1b54f16e4e9d129d283ba9d2e0b55 /math.c
parent28429cd68dfdc9850d3ebc7f712dc752a1c9244c (diff)
Stop casting function returns to void
This was used with old versions of lint to stop warnings about unused return values. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'math.c')
-rw-r--r--math.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/math.c b/math.c
index 6e46692..c51517c 100644
--- a/math.c
+++ b/math.c
@@ -102,15 +102,15 @@ parse_double(double *dp)
switch (numbase) {
case 8:
- (void)sscanf(dispstr, "%lo", &n);
+ sscanf(dispstr, "%lo", &n);
*dp = (double)n;
break;
case 16:
- (void)sscanf(dispstr, "%lX", &n);
+ sscanf(dispstr, "%lX", &n);
*dp = (double)n;
break;
default:
- (void)sscanf(dispstr, "%lf", dp);
+ sscanf(dispstr, "%lf", dp);
}
errno = olderrno;
@@ -490,7 +490,7 @@ twoop(int keynum)
if (!entered) { /* something like "5+*" */
if (!isopempty())
- (void) PopOp(); /* replace the prev op */
+ PopOp(); /* replace the prev op */
PushOp(keynum); /* with the new one */
return;
}
@@ -734,7 +734,7 @@ rparf(void)
dnum=acc;
PushNum(dnum);
}
- (void) PopNum();
+ PopNum();
flagPAREN--;
entered=2;
format_double(dnum);