aboutsummaryrefslogtreecommitdiff
path: root/tests/data/test858
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2014-10-31 12:32:39 +0100
committerDaniel Stenberg <daniel@haxx.se>2014-11-03 09:10:54 +0100
commitaebfd4cfbfb684a27eade9180498daf47d4789c6 (patch)
tree942c90efba6d5cbcc46e899cd4e2f02ef527d4ae /tests/data/test858
parentb2bb51f3396de4f4ef97d4c129bc42e432f8a695 (diff)
cmake: fix gethostby{addr,name}_r in CurlTests
This patch cleans up the automatically-generated (?) code and fixes one case that will always fail due to syntax error. HAVE_GETHOSTBYADDR_R_5_REENTRANT always failed because of a trailing character ("int length;q"). Several parameter type and unused variable warnings popped up. This causes a detection failure with -Werror. Observe that the REENTRANT cases are exactly the same as their non-REENTRANT cases except for a `_REENTRANT` macro definition. Merge all these pieces and build one big main function with different cases, but reusing variables where logical. For the cases where the parameters where NULL, I looked at lib/hostip4.c to get an idea of the parameters types. void-cast variables such as 'rc' to avoid -Wuninitialized errors. Signed-off-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'tests/data/test858')
0 files changed, 0 insertions, 0 deletions