Deleted Added
full compact
hcseriald.c (121054) hcseriald.c (122758)
1/*
2 * hcseriald.c
3 *
4 * Copyright (c) 2001-2002 Maksim Yevmenkin <m_evmenkin@yahoo.com>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 12 unchanged lines hidden (view full) ---

21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 *
28 * $Id: hcseriald.c,v 1.3 2003/05/21 22:40:32 max Exp $
1/*
2 * hcseriald.c
3 *
4 * Copyright (c) 2001-2002 Maksim Yevmenkin <m_evmenkin@yahoo.com>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 12 unchanged lines hidden (view full) ---

21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 *
28 * $Id: hcseriald.c,v 1.3 2003/05/21 22:40:32 max Exp $
29 * $FreeBSD: head/usr.sbin/bluetooth/hcseriald/hcseriald.c 121054 2003-10-12 22:04:24Z emax $
29 * $FreeBSD: head/usr.sbin/bluetooth/hcseriald/hcseriald.c 122758 2003-11-15 15:26:35Z harti $
30 */
31
32#include <sys/types.h>
33#include <sys/ioctl.h>
34
35#include <netgraph/ng_message.h>
36#include <netgraph.h>
37#include <netgraph/bluetooth/include/ng_h4.h>

--- 130 unchanged lines hidden (view full) ---

168/* Open terminal, set settings, push H4 line discipline and set node name */
169static int
170open_device(char const *device, speed_t speed, char const *name)
171{
172 int fd, disc, cs, ds;
173 struct termios t;
174 struct nodeinfo ni;
175 struct ngm_name n;
30 */
31
32#include <sys/types.h>
33#include <sys/ioctl.h>
34
35#include <netgraph/ng_message.h>
36#include <netgraph.h>
37#include <netgraph/bluetooth/include/ng_h4.h>

--- 130 unchanged lines hidden (view full) ---

168/* Open terminal, set settings, push H4 line discipline and set node name */
169static int
170open_device(char const *device, speed_t speed, char const *name)
171{
172 int fd, disc, cs, ds;
173 struct termios t;
174 struct nodeinfo ni;
175 struct ngm_name n;
176 char p[NG_NODELEN + 1];
176 char p[NG_NODESIZ];
177
178 /* Open terminal device and setup H4 line discipline */
179 fd = open(device, O_RDWR|O_NOCTTY);
180 if (fd < 0) {
181 syslog(LOG_ERR, "Could not open(%s). %s (%d)",
182 device, strerror(errno), errno);
183 exit(1);
184 }

--- 97 unchanged lines hidden ---
177
178 /* Open terminal device and setup H4 line discipline */
179 fd = open(device, O_RDWR|O_NOCTTY);
180 if (fd < 0) {
181 syslog(LOG_ERR, "Could not open(%s). %s (%d)",
182 device, strerror(errno), errno);
183 exit(1);
184 }

--- 97 unchanged lines hidden ---