forked from Imagelibrary/binutils-gdb
gas NULL casts
This removes many unnecessary NULL casts. I'm also adding a few arg casts in concat calls, to make the code consistent. Advice from quite a few years ago was that it's better to use the exact type for args corresponding to function ellipses, in case NULL is defined as plain 0. (I think that happened with some early 64-bit systems. Plain NULL ought to be OK nowadays.)
This commit is contained in:
@@ -221,7 +221,7 @@ as_warn (const char *format, ...)
|
||||
va_start (args, format);
|
||||
vsnprintf (buffer, sizeof (buffer), format, args);
|
||||
va_end (args);
|
||||
as_warn_internal ((char *) NULL, 0, buffer);
|
||||
as_warn_internal (NULL, 0, buffer);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -294,7 +294,7 @@ as_bad (const char *format, ...)
|
||||
vsnprintf (buffer, sizeof (buffer), format, args);
|
||||
va_end (args);
|
||||
|
||||
as_bad_internal ((char *) NULL, 0, buffer);
|
||||
as_bad_internal (NULL, 0, buffer);
|
||||
}
|
||||
|
||||
/* Like as_bad but the file name and line number are passed in.
|
||||
|
||||
Reference in New Issue
Block a user