remove C++ style comments

This commit is contained in:
plunky 2007-03-15 19:47:50 +00:00
parent c192a5db61
commit 298d20388c
6 changed files with 30 additions and 37 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: hci_event.c,v 1.3 2007/03/04 06:03:19 christos Exp $ */
/* $NetBSD: hci_event.c,v 1.4 2007/03/15 19:47:50 plunky Exp $ */
/*-
* Copyright (c) 2005 Iain Hibbert.
@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: hci_event.c,v 1.3 2007/03/04 06:03:19 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: hci_event.c,v 1.4 2007/03/15 19:47:50 plunky Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@ -344,7 +344,7 @@ hci_event_num_compl_pkts(struct hci_unit *unit, struct mbuf *m)
hci_sco_complete(link, num);
}
} else {
// XXX need to issue Read_Buffer_Size or Reset?
/* XXX need to issue Read_Buffer_Size or Reset? */
printf("%s: unknown handle %d! "
"(losing track of %d packet buffer%s)\n",
unit->hci_devname, handle,
@ -725,7 +725,7 @@ hci_cmd_read_local_features(struct hci_unit *unit, struct mbuf *m)
if (rp.features[4] & HCI_LMP_EV5_PKT)
unit->hci_sco_mask |= HCI_PKT_EV5;
// XXX what do 2MBPS/3MBPS/3SLOT eSCO mean?
/* XXX what do 2MBPS/3MBPS/3SLOT eSCO mean? */
s = splraiseipl(unit->hci_ipl);
unit->hci_flags &= ~BTF_INIT_FEATURES;

View File

@ -1,4 +1,4 @@
/* $NetBSD: l2cap_lower.c,v 1.2 2007/03/07 20:44:52 plunky Exp $ */
/* $NetBSD: l2cap_lower.c,v 1.3 2007/03/15 19:47:50 plunky Exp $ */
/*-
* Copyright (c) 2005 Iain Hibbert.
@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: l2cap_lower.c,v 1.2 2007/03/07 20:44:52 plunky Exp $");
__KERNEL_RCSID(0, "$NetBSD: l2cap_lower.c,v 1.3 2007/03/15 19:47:50 plunky Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@ -120,7 +120,6 @@ l2cap_recv_frame(struct mbuf *m, struct hci_link *link)
DPRINTFN(5, "(%s) received packet (%d bytes)\n",
link->hl_unit->hci_devname, hdr.length);
// wasnt this checked in hci_acl_recv() already?
if (hdr.length != m->m_pkthdr.len)
goto failed;
@ -130,7 +129,7 @@ l2cap_recv_frame(struct mbuf *m, struct hci_link *link)
}
if (hdr.dcid == L2CAP_CLT_CID) {
m_freem(m); // TODO
m_freem(m); /* TODO */
return;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: l2cap_signal.c,v 1.5 2007/03/12 20:34:54 plunky Exp $ */
/* $NetBSD: l2cap_signal.c,v 1.6 2007/03/15 19:47:51 plunky Exp $ */
/*-
* Copyright (c) 2005 Iain Hibbert.
@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: l2cap_signal.c,v 1.5 2007/03/12 20:34:54 plunky Exp $");
__KERNEL_RCSID(0, "$NetBSD: l2cap_signal.c,v 1.6 2007/03/15 19:47:51 plunky Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@ -204,9 +204,11 @@ l2cap_recv_command_rej(struct mbuf *m, struct hci_link *link)
case L2CAP_REJ_MTU_EXCEEDED:
/*
* I didnt send any commands over L2CAP_MTU_MINIMUM size, but..
*
* XXX maybe we should resend this, instead?
*/
link->hl_mtu = le16toh(cp.data[0]);
callout_schedule(&req->lr_rtx, 0); // XX maybe resend instead?
callout_schedule(&req->lr_rtx, 0);
break;
case L2CAP_REJ_INVALID_CID:
@ -362,7 +364,7 @@ l2cap_recv_connect_rsp(struct mbuf *m, struct hci_link *link)
break;
case L2CAP_PENDING:
// dont release request, should start eRTX timeout?
/* XXX dont release request, should start eRTX timeout? */
(*chan->lc_proto->connecting)(chan->lc_upper);
break;
@ -530,7 +532,7 @@ l2cap_recv_config_req(struct mbuf *m, struct hci_link *link)
if ((chan->lc_flags & L2CAP_WAIT_CONFIG_RSP) == 0) {
chan->lc_state = L2CAP_OPEN;
// XXX how to distinguish REconfiguration?
/* XXX how to distinguish REconfiguration? */
(*chan->lc_proto->connected)(chan->lc_upper);
}
}
@ -618,7 +620,7 @@ l2cap_recv_config_rsp(struct mbuf *m, struct hci_link *link)
if ((chan->lc_flags & L2CAP_WAIT_CONFIG_REQ) == 0) {
chan->lc_state = L2CAP_OPEN;
// XXX how to distinguish REconfiguration?
/* XXX how to distinguish REconfiguration? */
(*chan->lc_proto->connected)(chan->lc_upper);
}
}
@ -676,7 +678,7 @@ l2cap_recv_config_rsp(struct mbuf *m, struct hci_link *link)
}
if ((cp.flags & L2CAP_OPT_CFLAG_BIT) == 0)
l2cap_send_config_req(chan); // no state change
l2cap_send_config_req(chan); /* no state change */
goto out;

View File

@ -1,4 +1,4 @@
/* $NetBSD: l2cap_upper.c,v 1.3 2007/03/12 20:34:54 plunky Exp $ */
/* $NetBSD: l2cap_upper.c,v 1.4 2007/03/15 19:47:51 plunky Exp $ */
/*-
* Copyright (c) 2005 Iain Hibbert.
@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: l2cap_upper.c,v 1.3 2007/03/12 20:34:54 plunky Exp $");
__KERNEL_RCSID(0, "$NetBSD: l2cap_upper.c,v 1.4 2007/03/15 19:47:51 plunky Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@ -426,15 +426,7 @@ l2cap_setopt(struct l2cap_channel *chan, int opt, void *addr)
break;
case SO_L2CAP_OQOS: /* set Outgoing QoS flow spec */
// XXX
// memcpy(&chan->lc_oqos, addr, sizeof(l2cap_qos_t));
//break;
case SO_L2CAP_FLUSH: /* set Outgoing Flush Timeout */
// XXX
// chan->lc_flush = *(uint16_t *)addr;
//break;
default:
err = ENOPROTOOPT;
break;

View File

@ -1,4 +1,4 @@
/* $NetBSD: rfcomm_dlc.c,v 1.1 2006/06/19 15:44:45 gdamore Exp $ */
/* $NetBSD: rfcomm_dlc.c,v 1.2 2007/03/15 19:47:51 plunky Exp $ */
/*-
* Copyright (c) 2006 Itronix Inc.
@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: rfcomm_dlc.c,v 1.1 2006/06/19 15:44:45 gdamore Exp $");
__KERNEL_RCSID(0, "$NetBSD: rfcomm_dlc.c,v 1.2 2007/03/15 19:47:51 plunky Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@ -111,11 +111,11 @@ rfcomm_dlc_newconn(struct rfcomm_session *rs, int dlci)
dlc = best ? best : any;
// XXX
// Note that if this fails, we could have missed a chance to open
// a connection - really need to rewrite the strategy for storing
// listening DLC's so all can be checked in turn..
//
/* XXX
* Note that if this fails, we could have missed a chance to open
* a connection - really need to rewrite the strategy for storing
* listening DLC's so all can be checked in turn..
*/
if (dlc != NULL)
dlc = (*dlc->rd_proto->newconn)(dlc->rd_upper, &laddr, &raddr);

View File

@ -1,4 +1,4 @@
/* $NetBSD: rfcomm_session.c,v 1.6 2007/03/12 18:18:35 ad Exp $ */
/* $NetBSD: rfcomm_session.c,v 1.7 2007/03/15 19:47:51 plunky Exp $ */
/*-
* Copyright (c) 2006 Itronix Inc.
@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: rfcomm_session.c,v 1.6 2007/03/12 18:18:35 ad Exp $");
__KERNEL_RCSID(0, "$NetBSD: rfcomm_session.c,v 1.7 2007/03/15 19:47:51 plunky Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@ -323,7 +323,7 @@ rfcomm_session_timeout(void *arg)
static void
rfcomm_session_connecting(void *arg)
{
//struct rfcomm_session *rs = arg;
/* struct rfcomm_session *rs = arg; */
DPRINTF("Connecting\n");
}
@ -1077,7 +1077,7 @@ rfcomm_session_recv_mcc_msc(struct rfcomm_session *rs, int cr, struct mbuf *m)
len += sizeof(msc.modem);
dlc->rd_rmodem = msc.modem;
// XXX how do we signal this upstream?
/* XXX how do we signal this upstream? */
if (RFCOMM_EA(msc.modem) == 0) {
if (m->m_pkthdr.len < sizeof(msc.brk))
@ -1087,7 +1087,7 @@ rfcomm_session_recv_mcc_msc(struct rfcomm_session *rs, int cr, struct mbuf *m)
m_adj(m, sizeof(msc.brk));
len += sizeof(msc.brk);
// XXX how do we signal this upstream?
/* XXX how do we signal this upstream? */
}
rfcomm_session_send_mcc(rs, 0, RFCOMM_MCC_MSC, &msc, len);