Fix message handling and variable assignment (#40632)
* Fix message handling and variable assignment * Fix message handling and variable assignment Fix missing newline at end of file. * Remove unused MESSAGE_HEADER variable in init.cpp
Eamon committed
May 27, 2026 at 22:01 UTC
34cb2eb0e3d2db097f2c807a1954dc2dd1ff1094
1 file changed
+2
-3
src/linux/init/init.cpp
+2
-3
@@ -3052,7 +3052,6 @@ Return Value:
3052
3053
{
3054
std::vector<gsl::byte> Buffer;
3055
- MESSAGE_HEADER* Header{};
3055
struct sigaction SignalAction;
3056
3057
//
@@ -3102,7 +3101,7 @@ Return Value:
3101
break;
3102
3103
default:
3105
- FATAL_ERROR("Unexpected message {}", Header->MessageType);
3104
+ FATAL_ERROR("Unexpected message {}", Message->Header.MessageType);
3105
}
3106
}
3107
@@ -3207,7 +3206,7 @@ bool StopPlan9Server(bool Force, wsl::linux::WslDistributionConfig& Config)
3206
LX_INIT_STOP_PLAN9_SERVER Message{};
3207
Message.Header.MessageType = LxInitMessageStopPlan9Server;
3208
Message.Header.MessageSize = sizeof(Message);
3210
- Message.Force = Message.Force;
3209
+ Message.Force = Force;
3210
3211
const auto& Response = Config.Plan9ControlChannel.Transaction(Message);
3212