Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern mtod mbuf to sockaddr * for so_send().
details: https://anonhg.NetBSD.org/src/rev/711b2ce49bcc
branches: trunk
changeset: 338108:711b2ce49bcc
user: rtr <rtr%NetBSD.org@localhost>
date: Sun May 10 18:55:22 2015 +0000
description:
mtod mbuf to sockaddr * for so_send().
diffstat:
sys/kern/subr_tftproot.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 32eabca6f63c -r 711b2ce49bcc sys/kern/subr_tftproot.c
--- a/sys/kern/subr_tftproot.c Sun May 10 15:31:48 2015 +0000
+++ b/sys/kern/subr_tftproot.c Sun May 10 18:55:22 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_tftproot.c,v 1.14 2015/03/27 07:18:11 hikaru Exp $ */
+/* $NetBSD: subr_tftproot.c,v 1.15 2015/05/10 18:55:22 rtr Exp $ */
/*-
* Copyright (c) 2007 Emmanuel Dreyfus, all rights reserved.
@@ -39,7 +39,7 @@
#include "opt_md.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_tftproot.c,v 1.14 2015/03/27 07:18:11 hikaru Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_tftproot.c,v 1.15 2015/05/10 18:55:22 rtr Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -320,7 +320,7 @@
* we do not want to free it ourselves.
* Ignore errors, as we already have the whole file.
*/
- if ((error = (*so->so_send)(so, m_serv, NULL,
+ if ((error = (*so->so_send)(so, mtod(m_serv, struct sockaddr *), NULL,
m_outbuf, NULL, 0, l)) != 0)
DPRINTF(("%s():%d tftproot: sosend returned %d\n",
__func__, __LINE__, error));
Home |
Main Index |
Thread Index |
Old Index