Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/btpand The last argument before ... must not be def...



details:   https://anonhg.NetBSD.org/src/rev/c8f700356b5e
branches:  trunk
changeset: 818272:c8f700356b5e
user:      joerg <joerg%NetBSD.org@localhost>
date:      Tue Oct 04 21:40:31 2016 +0000

description:
The last argument before ... must not be default promoted, otherwise the
result is undefined behavior.

diffstat:

 usr.sbin/btpand/bnep.c   |  6 +++---
 usr.sbin/btpand/btpand.h |  4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r b07a4bedc825 -r c8f700356b5e usr.sbin/btpand/bnep.c
--- a/usr.sbin/btpand/bnep.c    Tue Oct 04 21:37:46 2016 +0000
+++ b/usr.sbin/btpand/bnep.c    Tue Oct 04 21:40:31 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bnep.c,v 1.11 2011/08/27 22:30:44 joerg Exp $  */
+/*     $NetBSD: bnep.c,v 1.12 2016/10/04 21:40:31 joerg Exp $  */
 
 /*-
  * Copyright (c) 2008 Iain Hibbert
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: bnep.c,v 1.11 2011/08/27 22:30:44 joerg Exp $");
+__RCSID("$NetBSD: bnep.c,v 1.12 2016/10/04 21:40:31 joerg Exp $");
 
 #include <bluetooth.h>
 #include <sdp.h>
@@ -587,7 +587,7 @@
 }
 
 void
-bnep_send_control(channel_t *chan, uint8_t type, ...)
+bnep_send_control(channel_t *chan, int type, ...)
 {
        packet_t *pkt;
        uint8_t *p;
diff -r b07a4bedc825 -r c8f700356b5e usr.sbin/btpand/btpand.h
--- a/usr.sbin/btpand/btpand.h  Tue Oct 04 21:37:46 2016 +0000
+++ b/usr.sbin/btpand/btpand.h  Tue Oct 04 21:40:31 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: btpand.h,v 1.4 2012/10/14 08:35:45 plunky Exp $        */
+/*     $NetBSD: btpand.h,v 1.5 2016/10/04 21:40:31 joerg Exp $ */
 
 /*-
  * Copyright (c) 2008-2009 Iain Hibbert
@@ -168,7 +168,7 @@
 /* bnep.c */
 bool           bnep_send(channel_t *, packet_t *);
 bool           bnep_recv(packet_t *);
-void           bnep_send_control(channel_t *, uint8_t, ...);
+void           bnep_send_control(channel_t *, int, ...);
 
 /* channel.c */
 void           channel_init(void);



Home | Main Index | Thread Index | Old Index