summaryrefslogtreecommitdiff
path: root/bfd/bfd-in.h
diff options
context:
space:
mode:
authorPedro Alves <pedro@codesourcery.com>2007-10-25 21:01:55 +0000
committerPedro Alves <pedro@codesourcery.com>2007-10-25 21:01:55 +0000
commit1ebca2449464904e8d3476be694fe91b4ad3aedf (patch)
tree7502fb39e0fa8e471dc8a86cbcae5a42dee09830 /bfd/bfd-in.h
parent3c1623d465c749dffa4e98db01d5d6483d7e2b02 (diff)
downloadbinutils-redhat-1ebca2449464904e8d3476be694fe91b4ad3aedf.tar.gz
bfd/
* bfd-in.h (STRING_COMMA_LEN): Don't handle NULL STR case. * bfd-in2.h: Regenerate. ld/ * pe-dll.c (autofilter_symbollist_generic) (autofilter_symbollist_i386, autofilter_liblist) (autofilter_objlist, autofilter_symbolprefixlist) (autofilter_symbolsuffixlist): Don't use STRING_COMMA_LEN with NULL.
Diffstat (limited to 'bfd/bfd-in.h')
-rw-r--r--bfd/bfd-in.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/bfd/bfd-in.h b/bfd/bfd-in.h
index 07fdf03649..be5c2e59fa 100644
--- a/bfd/bfd-in.h
+++ b/bfd/bfd-in.h
@@ -46,9 +46,8 @@ extern "C" {
/* This is a utility macro to handle the situation where the code
wants to place a constant string into the code, followed by a
comma and then the length of the string. Doing this by hand
- is error prone, so using this macro is safer. The macro will
- also safely handle the case where a NULL is passed as the arg. */
-#define STRING_COMMA_LEN(STR) (STR), ((STR) ? sizeof (STR) - 1 : 0)
+ is error prone, so using this macro is safer. */
+#define STRING_COMMA_LEN(STR) (STR), (sizeof (STR) - 1)
/* Unfortunately it is not possible to use the STRING_COMMA_LEN macro
to create the arguments to another macro, since the preprocessor
will mis-count the number of arguments to the outer macro (by not