Skip to content

Commit

Permalink
Merge pull request #78 from charlesreiss/master
Browse files Browse the repository at this point in the history
Fix typos in code direct/reliable.rst
  • Loading branch information
llpeterson committed Jun 17, 2024
2 parents 4a2f475 + f2b272e commit e3cbccd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions direct/reliable.rst
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ this count, thus unblocking any waiting sender.
sendSWP(SwpState *state, Msg *frame)
{
struct sendQ_slot *slot;
hbuf[HLEN];
char hbuf[HLEN];
/* wait for send window to open */
semWait(&state->sendWindowNotFull);
Expand Down Expand Up @@ -490,14 +490,14 @@ the prose description given earlier in this section).
.. code-block:: c
static int
deliverSWP(SwpState state, Msg *frame)
deliverSWP(SwpState *state, Msg *frame)
{
SwpHdr hdr;
char *hbuf;
hbuf = msgStripHdr(frame, HLEN);
load_swp_hdr(&hdr, hbuf)
if (hdr->Flags & FLAG_ACK_VALID)
if (hdr.Flags & FLAG_ACK_VALID)
{
/* received an acknowledgment—do SENDER side */
if (swpInWindow(hdr.AckNum, state->LAR + 1, state->LFS))
Expand Down

0 comments on commit e3cbccd

Please sign in to comment.