Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
534a2f93
Commit
534a2f93
authored
10 years ago
by
Martine Lenders
Browse files
Options
Downloads
Plain Diff
Merge pull request #2814 from authmillenon/pktbuf/fix/remove-fix-return
pktbuf: fix snip-was-head case for pktbuf_remove_snip
parents
480924af
2c46c79f
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sys/include/net/ng_pktbuf.h
+6
-1
6 additions, 1 deletion
sys/include/net/ng_pktbuf.h
with
6 additions
and
1 deletion
sys/include/net/ng_pktbuf.h
+
6
−
1
View file @
534a2f93
...
@@ -172,12 +172,17 @@ ng_pktsnip_t *ng_pktbuf_start_write(ng_pktsnip_t *pkt);
...
@@ -172,12 +172,17 @@ ng_pktsnip_t *ng_pktbuf_start_write(ng_pktsnip_t *pkt);
*
*
* @param[in] pkt A packet.
* @param[in] pkt A packet.
* @param[in] snip A snip in the packet.
* @param[in] snip A snip in the packet.
*
* @return The new reference to @p pkt.
*/
*/
static
inline
void
ng_pktbuf_remove_snip
(
ng_pktsnip_t
*
pkt
,
ng_pktsnip_t
*
snip
)
static
inline
ng_pktsnip_t
*
ng_pktbuf_remove_snip
(
ng_pktsnip_t
*
pkt
,
ng_pktsnip_t
*
snip
)
{
{
LL_DELETE
(
pkt
,
snip
);
LL_DELETE
(
pkt
,
snip
);
snip
->
next
=
NULL
;
snip
->
next
=
NULL
;
ng_pktbuf_release
(
snip
);
ng_pktbuf_release
(
snip
);
return
pkt
;
}
}
#ifdef DEVELHELP
#ifdef DEVELHELP
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment