projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Assign more suitable types and fix narrowing conversion warns.
[tinc]
/
src
/
bsd
/
device.c
diff --git
a/src/bsd/device.c
b/src/bsd/device.c
index
db506e5
..
57029d5
100644
(file)
--- a/
src/bsd/device.c
+++ b/
src/bsd/device.c
@@
-85,7
+85,7
@@
static bool setup_utun(void) {
return false;
}
-
int
unit = -1;
+
long
unit = -1;
char *p = strstr(device, "utun"), *e = NULL;
if(p) {
@@
-351,7
+351,7
@@
static void close_device(void) {
}
static bool read_packet(vpn_packet_t *packet) {
-
in
t inlen;
+
ssize_
t inlen;
switch(device_type) {
case DEVICE_TYPE_TUN: