projects
/
cascardo
/
libreceita.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8cd412
)
Silence compiler warning in 64-bit mode
author
Alexandre Oliva
<lxoliva@fsfla.org>
Thu, 6 Mar 2014 13:07:14 +0000
(10:07 -0300)
committer
Thadeu Lima de Souza Cascardo
<cascardo@cascardo.info>
Fri, 7 Mar 2014 22:54:24 +0000
(19:54 -0300)
Casting an int to gnutls_transport_ptr_t gets a warning when
sizeof(void*)!=sizeof(int). Casting the int to int_ptr first
silences the warning.
rnetclient.c
patch
|
blob
|
history
diff --git
a/rnetclient.c
b/rnetclient.c
index
2b98cc4
..
0ce8593
100644
(file)
--- a/
rnetclient.c
+++ b/
rnetclient.c
@@
-311,7
+311,7
@@
int main(int argc, char **argv)
r == EAI_SYSTEM ? strerror(errno) : gai_strerror(r));
exit(1);
}
- gnutls_transport_set_ptr(session, (gnutls_transport_ptr_t) c);
+ gnutls_transport_set_ptr(session, (gnutls_transport_ptr_t)
(intptr_t)
c);
r = handshake(c);
if (r < 0) {
exit(1);