Skip to content

Commit 3eeda13

Browse files
committed
minor coding style/spelling fixes
1 parent b92faff commit 3eeda13

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

doc/savannah.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Archive the current directory using tar, gzip'd, bzip2'd and zip'd.
102102
tar cjvf lwip-1.4.1.tar.bz2 lwip-1.4.1
103103
zip -r lwip-1.4.1.zip lwip-1.4.1
104104

105-
Alterntively, archive the current directory using git
105+
Alternatively, archive the current directory using git
106106
git archive -o lwip-1.4.1.tar.gz --prefix lwip-1.4.1/ STABLE-1_4_1
107107

108108
Now, sign the archives with a detached GPG binary signature as follows:

src/core/ipv4/icmp.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,9 @@ icmp_send_response(struct pbuf *p, u8_t type, u8_t code)
351351

352352
/* Keep IP header + up to 8 bytes */
353353
response_pkt_len = IP_HLEN + ICMP_DEST_UNREACH_DATASIZE;
354-
if (p->tot_len < response_pkt_len) response_pkt_len = p->tot_len;
354+
if (p->tot_len < response_pkt_len) {
355+
response_pkt_len = p->tot_len;
356+
}
355357

356358
/* ICMP header + part of original packet */
357359
q = pbuf_alloc(PBUF_IP, sizeof(struct icmp_hdr) + response_pkt_len, PBUF_RAM);

0 commit comments

Comments
 (0)