summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Elischer <julian@FreeBSD.org>2001-08-19 04:30:13 +0000
committerJulian Elischer <julian@FreeBSD.org>2001-08-19 04:30:13 +0000
commita8cfc0ee40bf8c504a25b64bc7ddbc7a726a56ec (patch)
treecb1e9d42eef0b5b99f61d164f5b2b62986d3c6e4
parentad96855df197e1d28fab13045f3b3ba40adbdf13 (diff)
Notes
-rw-r--r--sys/kern/uipc_mbuf.c2
-rw-r--r--sys/kern/uipc_usrreq.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c
index d68299c0f3d1..9944227af24d 100644
--- a/sys/kern/uipc_mbuf.c
+++ b/sys/kern/uipc_mbuf.c
@@ -303,7 +303,7 @@ nospace:
* continuing for "len" bytes, into the indicated buffer.
*/
void
-m_copydata(struct mbuf *m, int off, int len, caddr_t cp)
+m_copydata(const struct mbuf *m, int off, int len, caddr_t cp)
{
unsigned count;
diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c
index d21641fbbe42..043bc6b18507 100644
--- a/sys/kern/uipc_usrreq.c
+++ b/sys/kern/uipc_usrreq.c
@@ -855,8 +855,6 @@ unp_pcblist(SYSCTL_HANDLER_ARGS)
}
unp_list = malloc(n * sizeof *unp_list, M_TEMP, M_WAITOK);
- if (unp_list == 0)
- return ENOMEM;
for (unp = LIST_FIRST(head), i = 0; unp && i < n;
unp = LIST_NEXT(unp, unp_link)) {