projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
061c3fc
)
Fix compilation errors when --enable-uml is used.
author
Guus Sliepen
<guus@tinc-vpn.org>
Sat, 4 Nov 2017 13:42:28 +0000
(14:42 +0100)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Sat, 4 Nov 2017 13:42:28 +0000
(14:42 +0100)
src/uml_device.c
patch
|
blob
|
history
diff --git
a/src/uml_device.c
b/src/uml_device.c
index
4a03bb7
..
49f26ff
100644
(file)
--- a/
src/uml_device.c
+++ b/
src/uml_device.c
@@
-235,7
+235,7
@@
static bool read_packet(vpn_packet_t *packet) {
return false;
}
return false;
}
- if(connect(write_fd, &request.sock, sizeof(request.sock)) < 0) {
+ if(connect(write_fd,
(struct sockaddr *)
&request.sock, sizeof(request.sock)) < 0) {
logger(LOG_ERR, "Could not bind write %s: %s", device_info, strerror(errno));
running = false;
return false;
logger(LOG_ERR, "Could not bind write %s: %s", device_info, strerror(errno));
running = false;
return false;
@@
-269,7
+269,7
@@
static bool read_packet(vpn_packet_t *packet) {
}
default:
}
default:
- logger(LOG_ERR, "Invalid value for state variable in "
FILE
);
+ logger(LOG_ERR, "Invalid value for state variable in "
__FILE__
);
abort();
}
}
abort();
}
}