diff options
Diffstat (limited to 'app/xfs/difs/events.c')
-rw-r--r-- | app/xfs/difs/events.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/app/xfs/difs/events.c b/app/xfs/difs/events.c index d70284290..01923b4e0 100644 --- a/app/xfs/difs/events.c +++ b/app/xfs/difs/events.c @@ -93,16 +93,16 @@ ProcSetEventMask(ClientPtr client) int ProcGetEventMask(ClientPtr client) { - fsGetEventMaskReply rep; + fsGetEventMaskReply rep = { + .type = FS_Reply, + .sequenceNumber = client->sequence, + .length = SIZEOF(fsGetEventMaskReply) >> 2, + .event_mask = client->eventmask + }; REQUEST(fsGetEventMaskReq); REQUEST_AT_LEAST_SIZE(fsGetEventMaskReq); - rep.type = FS_Reply; - rep.sequenceNumber = client->sequence; - rep.length = SIZEOF(fsGetEventMaskReply) >> 2; - rep.event_mask = client->eventmask; - WriteReplyToClient(client, SIZEOF(fsGetEventMaskReply), &rep); return client->noClientException; } @@ -110,13 +110,13 @@ ProcGetEventMask(ClientPtr client) void SendKeepAliveEvent(ClientPtr client) { - fsKeepAliveEvent ev; - - ev.type = FS_Event; - ev.event_code = KeepAlive; - ev.sequenceNumber = client->sequence; - ev.length = SIZEOF(fsKeepAliveEvent) >> 2; - ev.timestamp = GetTimeInMillis(); + fsKeepAliveEvent ev = { + .type = FS_Event, + .event_code = KeepAlive, + .sequenceNumber = client->sequence, + .length = SIZEOF(fsKeepAliveEvent) >> 2, + .timestamp = GetTimeInMillis() + }; #ifdef DEBUG fprintf(stderr, "client #%d is getting a KeepAlive\n", client->index); |