Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net wg: M_NOWAIT -> M_DONTWAIT
details: https://anonhg.NetBSD.org/src/rev/7df4664da9f7
branches: trunk
changeset: 943357:7df4664da9f7
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Aug 31 20:31:43 2020 +0000
description:
wg: M_NOWAIT -> M_DONTWAIT
These happen to be aliases, but M_NOWAIT is part of the legacy malloc
API whereas M_DONTWAIT is part of the mbuf API.
diffstat:
sys/net/if_wg.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 75544454bc9a -r 7df4664da9f7 sys/net/if_wg.c
--- a/sys/net/if_wg.c Mon Aug 31 20:31:03 2020 +0000
+++ b/sys/net/if_wg.c Mon Aug 31 20:31:43 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_wg.c,v 1.47 2020/08/31 20:31:03 riastradh Exp $ */
+/* $NetBSD: if_wg.c,v 1.48 2020/08/31 20:31:43 riastradh Exp $ */
/*
* Copyright (C) Ryota Ozaki <ozaki.ryota%gmail.com@localhost>
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wg.c,v 1.47 2020/08/31 20:31:03 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wg.c,v 1.48 2020/08/31 20:31:43 riastradh Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -4718,7 +4718,7 @@
dst = iov[0].iov_base;
- m = m_gethdr(M_NOWAIT, MT_DATA);
+ m = m_gethdr(M_DONTWAIT, MT_DATA);
if (m == NULL)
return;
m->m_len = m->m_pkthdr.len = 0;
@@ -4743,7 +4743,7 @@
src = iov[0].iov_base;
- m = m_gethdr(M_NOWAIT, MT_DATA);
+ m = m_gethdr(M_DONTWAIT, MT_DATA);
if (m == NULL)
return;
m->m_len = m->m_pkthdr.len = 0;
Home |
Main Index |
Thread Index |
Old Index