From 2e9e61626c5e82975ec688e335790c94bb64f37b Mon Sep 17 00:00:00 2001 From: Gilles Chehade Date: Mon, 16 Jan 2023 00:53:33 +0100 Subject: [PATCH] fix example --- examples/04-fd-passing-forever/child.go | 2 +- examples/04-fd-passing-forever/parent.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/04-fd-passing-forever/child.go b/examples/04-fd-passing-forever/child.go index 81fb146..1c69b9a 100644 --- a/examples/04-fd-passing-forever/child.go +++ b/examples/04-fd-passing-forever/child.go @@ -29,7 +29,7 @@ func child() { <-channel.Dispatch() } -func handlePING(msg ipcmsg.IPCMessage) { +func handlePING(msg *ipcmsg.IPCMessage) { var data string msg.Unmarshal(&data) diff --git a/examples/04-fd-passing-forever/parent.go b/examples/04-fd-passing-forever/parent.go index 127fc77..50f8613 100644 --- a/examples/04-fd-passing-forever/parent.go +++ b/examples/04-fd-passing-forever/parent.go @@ -37,7 +37,7 @@ func parent() { <-channel.Dispatch() } -func handlePONG(msg ipcmsg.IPCMessage) { +func handlePONG(msg *ipcmsg.IPCMessage) { var data string msg.Unmarshal(&data)