projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
843990d
)
Fix a compiler warning.
author
Guus Sliepen
<guus@tinc-vpn.org>
Sat, 2 Sep 2017 19:06:25 +0000
(21:06 +0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Sat, 2 Sep 2017 19:06:25 +0000
(21:06 +0200)
src/uml_device.c
patch
|
blob
|
history
diff --git
a/src/uml_device.c
b/src/uml_device.c
index
57d4843
..
2a06de3
100644
(file)
--- a/
src/uml_device.c
+++ b/
src/uml_device.c
@@
-228,7
+228,7
@@
static bool read_packet(vpn_packet_t *packet) {
return false;
}
- if(connect(write_fd, &request.sock, sizeof request.sock) < 0) {
+ if(connect(write_fd,
(struct sockkadr *)
&request.sock, sizeof request.sock) < 0) {
logger(DEBUG_ALWAYS, LOG_ERR, "Could not bind write %s: %s", device_info, strerror(errno));
event_exit();
return false;