• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

curl / curl / 5704
37%

Build:
DEFAULT BRANCH: master
Ran 03 Jul 2017 02:08PM UTC
Jobs 1
Files 336
Run time 15s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
5704

push

travis-ci

bagder
gtls: fix build when sizeof(long) < sizeof(void *)

- Change gnutls pointer/int macros to pointer/curl_socket_t.
  Prior to this change they used long type as well.

The size of the `long` data type can be shorter than that of pointer
types. This is the case most notably on Windows.

If C99 were acceptable, we could simply use `intptr_t` here. But we
want to retain C89 compatibility.

Simply use the trick of performing pointer arithmetic with the NULL
pointer: to convert an integer `i` to a pointer, simply take the
address of the `i`th element of a hypothetical character array
starting at address NULL. To convert back, simply cast the pointer
difference.

Thanks to Jay Satiro for the initial modification to use curl_socket_t
instead of int/long.

Closes #1617

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>

18676 of 25230 relevant lines covered (74.02%)

42579.87 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
lib/url.c
Jobs
ID Job ID Ran Files Coverage
7 5704.7 (BUILD_TYPE=coverage) 03 Jul 2017 02:08PM UTC 0
74.02
Travis Job 5704.7
Source Files on build 5704
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #5704
  • c0cdc68c on github
  • Prev Build on master (#5699)
  • Next Build on master (#5708)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc