summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsbruno <sbruno@FreeBSD.org>2013-11-14 18:41:58 +0000
committersbruno <sbruno@FreeBSD.org>2013-11-14 18:41:58 +0000
commitb4c1ce5f71338c9212052155233e39f36f124d61 (patch)
tree68cbe220d6983a27a9feae095c5204cc38de55fc
parentda5713b7a8ccdf85b7f9f0472d51f8b409c11f49 (diff)
downloadFreeBSD-src-b4c1ce5f71338c9212052155233e39f36f124d61.zip
FreeBSD-src-b4c1ce5f71338c9212052155233e39f36f124d61.tar.gz
Repair build after svn r258115
options.get_size_type() appears to return a const char *, so assume that its a string as oppose to *nothing*. I have no idea what apple's code is trying to do here: http://opensource.apple.com/source/gperf/gperf-9/patches/size_type.patch
-rw-r--r--contrib/gperf/src/output.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/gperf/src/output.cc b/contrib/gperf/src/output.cc
index f329130..9cb3dd4 100644
--- a/contrib/gperf/src/output.cc
+++ b/contrib/gperf/src/output.cc
@@ -779,7 +779,7 @@ Output::output_hash_function () const
" register %s len;\n" :
option[ANSIC] | option[CPLUSPLUS] ?
"(register const char *str, register %s len)\n" :
- "", option.get_size_type());
+ "%s", option.get_size_type());
/* Note that when the hash function is called, it has already been verified
that min_key_len <= len <= max_key_len. */
@@ -1907,7 +1907,7 @@ Output::output_lookup_function () const
" register %s len;\n" :
option[ANSIC] | option[CPLUSPLUS] ?
"(register const char *str, register %s len)\n" :
- "", option.get_size_type());
+ "%s", option.get_size_type());
/* Output the function's body. */
printf ("{\n");
OpenPOWER on IntegriCloud