-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkg/libschc: fix compilation with clang
- Loading branch information
Marian Buschsieweke
committed
May 19, 2023
1 parent
4e203c7
commit 7108d12
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
pkg/libschc/patches/0001-fragmenter.c-drop-unused-variable.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
From 6ca9271090ed24fcd4e6e27a5751ade1020ad275 Mon Sep 17 00:00:00 2001 | ||
From: Marian Buschsieweke <marian.buschsieweke@ovgu.de> | ||
Date: Fri, 19 May 2023 23:34:12 +0200 | ||
Subject: [PATCH] fragmenter.c: drop unused variable | ||
|
||
--- | ||
fragmenter.c | 3 +-- | ||
1 file changed, 1 insertion(+), 2 deletions(-) | ||
|
||
diff --git a/fragmenter.c b/fragmenter.c | ||
index 8454906..dd8694a 100755 | ||
--- a/fragmenter.c | ||
+++ b/fragmenter.c | ||
@@ -73,7 +73,7 @@ static uint16_t get_max_fcn_value(schc_fragmentation_t* conn) { | ||
* | ||
*/ | ||
static void mbuf_print(schc_mbuf_t *head) { | ||
- uint8_t i = 0; uint8_t j; | ||
+ uint8_t j; | ||
schc_mbuf_t *curr = head; | ||
while (curr != NULL) { | ||
DEBUG_PRINTF("%d: %p\n", curr->frag_cnt, curr->ptr); | ||
@@ -83,7 +83,6 @@ static void mbuf_print(schc_mbuf_t *head) { | ||
} | ||
DEBUG_PRINTF("\n"); | ||
curr = curr->next; | ||
- i++; | ||
} | ||
} | ||
|
||
-- | ||
2.40.1 | ||
|