mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-31 08:25:38 +00:00
switch statement work
This commit is contained in:
parent
a1bf139188
commit
914b4fae7b
@ -256,7 +256,6 @@ namespace {
|
||||
break;
|
||||
case ZT_EVENT_USER_MESSAGE:
|
||||
case ZT_EVENT_REMOTE_TRACE:
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -291,7 +290,7 @@ namespace {
|
||||
case ZT_STATE_OBJECT_PEER:
|
||||
snprintf(p, sizeof(p), "peers.d/%.10" PRIx64, id[0]);
|
||||
break;
|
||||
default:
|
||||
case ZT_STATE_OBJECT_NULL:
|
||||
return;
|
||||
}
|
||||
|
||||
@ -356,7 +355,7 @@ namespace {
|
||||
case ZT_STATE_OBJECT_PEER:
|
||||
snprintf(p, sizeof(p), "peers.d/%.10" PRIx64, id[0]);
|
||||
break;
|
||||
default:
|
||||
case ZT_STATE_OBJECT_NULL:
|
||||
return -100;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user