Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netbt The last named argument of a variadic function sha...
details: https://anonhg.NetBSD.org/src/rev/de939a5b7189
branches: trunk
changeset: 818231:de939a5b7189
user: joerg <joerg%NetBSD.org@localhost>
date: Tue Oct 04 14:13:46 2016 +0000
description:
The last named argument of a variadic function shall not be default
promoted according to ISO C.
diffstat:
sys/netbt/l2cap_signal.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r d1171586a9c5 -r de939a5b7189 sys/netbt/l2cap_signal.c
--- a/sys/netbt/l2cap_signal.c Tue Oct 04 14:13:21 2016 +0000
+++ b/sys/netbt/l2cap_signal.c Tue Oct 04 14:13:46 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: l2cap_signal.c,v 1.17 2015/11/28 08:57:33 plunky Exp $ */
+/* $NetBSD: l2cap_signal.c,v 1.18 2016/10/04 14:13:46 joerg Exp $ */
/*-
* Copyright (c) 2005 Iain Hibbert.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: l2cap_signal.c,v 1.17 2015/11/28 08:57:33 plunky Exp $");
+__KERNEL_RCSID(0, "$NetBSD: l2cap_signal.c,v 1.18 2016/10/04 14:13:46 joerg Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@@ -58,7 +58,7 @@
static void l2cap_recv_disconnect_rsp(struct mbuf *, struct hci_link *);
static void l2cap_recv_info_req(struct mbuf *, struct hci_link *);
static int l2cap_send_signal(struct hci_link *, uint8_t, uint8_t, uint16_t, void *);
-static int l2cap_send_command_rej(struct hci_link *, uint8_t, uint16_t, ...);
+static int l2cap_send_command_rej(struct hci_link *, uint8_t, int, ...);
static void l2cap_qos_btoh(l2cap_qos_t *, void *);
static void l2cap_qos_htob(void *, l2cap_qos_t *);
@@ -1049,7 +1049,7 @@
*/
static int
l2cap_send_command_rej(struct hci_link *link, uint8_t ident,
- uint16_t reason, ...)
+ int reason, ...)
{
l2cap_cmd_rej_cp cp;
int len = 0;
Home |
Main Index |
Thread Index |
Old Index