btpand.c (1829d5da5355930d5cfa8ec8add8ff47dc0bebab) btpand.c (715238635df71408bdf4cac22a213c7598da2546)
1/* $NetBSD: btpand.c,v 1.1 2008/08/17 13:20:57 plunky Exp $ */
2
3/*-
4 * Copyright (c) 2008 Iain Hibbert
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

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

96
97 break;
98
99 case 'c': /* control socket path */
100 control_path = optarg;
101 break;
102
103 case 'd': /* local address */
1/* $NetBSD: btpand.c,v 1.1 2008/08/17 13:20:57 plunky Exp $ */
2
3/*-
4 * Copyright (c) 2008 Iain Hibbert
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

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

96
97 break;
98
99 case 'c': /* control socket path */
100 control_path = optarg;
101 break;
102
103 case 'd': /* local address */
104 if (!bt_aton(optarg, &local_bdaddr)) {
104 if (!bt_devaddr(optarg, &local_bdaddr)) {
105 struct hostent *he;
106
107 if ((he = bt_gethostbyname(optarg)) == NULL)
108 errx(EXIT_FAILURE, "%s: %s",
109 optarg, hstrerror(h_errno));
110
111 bdaddr_copy(&local_bdaddr,
112 (bdaddr_t *)he->h_addr);

--- 181 unchanged lines hidden ---
105 struct hostent *he;
106
107 if ((he = bt_gethostbyname(optarg)) == NULL)
108 errx(EXIT_FAILURE, "%s: %s",
109 optarg, hstrerror(h_errno));
110
111 bdaddr_copy(&local_bdaddr,
112 (bdaddr_t *)he->h_addr);

--- 181 unchanged lines hidden ---