gas remove assorted unnecessary casts

This continues the saga of removing unnecessary casts, and making
small code tidies in gas.  Hopefully this sees the last of K&R
anachronisms.
This commit is contained in:
Alan Modra
2025-07-09 09:13:51 +09:30
parent a093ef7af4
commit e76715632c
44 changed files with 190 additions and 224 deletions

View File

@@ -22,7 +22,8 @@
#include "as.h"
#include "subsegs.h"
dmp_frags ()
void
dmp_frags (void)
{
asection *s;
frchainS *chp;
@@ -48,9 +49,8 @@ dmp_frags ()
}
}
dmp_frag (fp, indent)
struct frag *fp;
char *indent;
void
dmp_frag (struct frag *fp, char *indent)
{
for (; fp; fp = fp->fr_next)
{
@@ -90,9 +90,8 @@ dmp_frag (fp, indent)
}
}
var_chars (fp, n)
struct frag *fp;
int n;
void
var_chars (struct frag *fp, int n)
{
unsigned char *p;