From 8a314520ccacb26f7692707bada1985d1dd1acf7 Mon Sep 17 00:00:00 2001 From: Frediano Ziglio Date: Tue, 31 May 2016 10:38:52 +0100 Subject: [PATCH] Fix some typos in comments Signed-off-by: Frediano Ziglio Acked-by: Jonathon Jongsma --- server/char-device.h | 4 ++-- server/reds.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/char-device.h b/server/char-device.h index 39bff4e0..2dd848f2 100644 --- a/server/char-device.h +++ b/server/char-device.h @@ -175,9 +175,9 @@ int red_char_device_restore(RedCharDevice *dev, * This routine is a workaround for a bad tokens management in the vdagent * protocol: * The client tokens' are set only once, when the main channel is initialized. - * Instead, it would have been more appropriate to reset them upon AGEN_CONNECT. + * Instead, it would have been more appropriate to reset them upon AGENT_CONNECT. * The client tokens are tracked as part of the RedCharDeviceClient. Thus, - * in order to be backwartd compatible with the client, we need to track the tokens + * in order to be backward compatible with the client, we need to track the tokens * event when the agent is detached. We don't destroy the char_device state, and * instead we just reset it. * In addition, there is a misshandling of AGENT_TOKENS message in spice-gtk: it diff --git a/server/reds.c b/server/reds.c index 827ba2aa..60e60925 100644 --- a/server/reds.c +++ b/server/reds.c @@ -546,7 +546,7 @@ static void reds_reset_vdp(RedsState *reds) /* resetting and not destroying the dev as a workaround for a bad * tokens management in the vdagent protocol: * The client tokens' are set only once, when the main channel is initialized. - * Instead, it would have been more appropriate to reset them upon AGEN_CONNECT. + * Instead, it would have been more appropriate to reset them upon AGENT_CONNECT. * The client tokens are tracked as part of the RedCharDeviceClient. Thus, * in order to be backward compatible with the client, we need to track the tokens * even if the agent is detached. We don't destroy the char_device, and