~bluetooth/bluez/vivid-phone-overlay

« back to all changes in this revision

Viewing changes to tools/hcitool.c

  • Committer: CI Train Bot
  • Date: 2015-09-14 10:07:45 UTC
  • mfrom: (1.1.2 add-citrain-support)
  • Revision ID: ci-train-bot@canonical.com-20150914100745-3v04zcmjdxez4lab
* debian/rules:
  - Migrate from cdbs to debhelper to make it possible to build our
    packages with the Ubuntu citrain infrastructure.

Show diffs side-by-side

added added

removed removed

Lines of Context:
716
716
                cc = 0;
717
717
 
718
718
                if (extinf) {
719
 
                        cr = malloc(sizeof(*cr) + 2*sizeof(struct hci_conn_info));
 
719
                        cr = malloc(sizeof(*cr) + sizeof(struct hci_conn_info));
720
720
                        if (cr) {
721
721
                                bacpy(&cr->bdaddr, &(info+i)->bdaddr);
722
722
                                cr->type = ACL_LINK;
918
918
                exit(1);
919
919
        }
920
920
 
921
 
        cr = malloc(sizeof(*cr) + 2*sizeof(struct hci_conn_info));
 
921
        cr = malloc(sizeof(*cr) + sizeof(struct hci_conn_info));
922
922
        if (!cr) {
923
923
                perror("Can't get connection info");
924
924
                close(dd);
1324
1324
                exit(1);
1325
1325
        }
1326
1326
 
1327
 
        cr = malloc(sizeof(*cr) + 2*sizeof(struct hci_conn_info));
 
1327
        cr = malloc(sizeof(*cr) + sizeof(struct hci_conn_info));
1328
1328
        if (!cr) {
1329
1329
                perror("Can't allocate memory");
1330
1330
                exit(1);
1450
1450
                exit(1);
1451
1451
        }
1452
1452
 
1453
 
        cr = malloc(sizeof(*cr) + 2*sizeof(struct hci_conn_info));
 
1453
        cr = malloc(sizeof(*cr) + sizeof(struct hci_conn_info));
1454
1454
        if (!cr) {
1455
1455
                perror("Can't allocate memory");
1456
1456
                exit(1);
1518
1518
                exit(1);
1519
1519
        }
1520
1520
 
1521
 
        cr = malloc(sizeof(*cr) + 2*sizeof(struct hci_conn_info));
 
1521
        cr = malloc(sizeof(*cr) + sizeof(struct hci_conn_info));
1522
1522
        if (!cr) {
1523
1523
                perror("Can't allocate memory");
1524
1524
                exit(1);
1588
1588
                exit(1);
1589
1589
        }
1590
1590
 
1591
 
        cr = malloc(sizeof(*cr) + 2*sizeof(struct hci_conn_info));
 
1591
        cr = malloc(sizeof(*cr) + sizeof(struct hci_conn_info));
1592
1592
        if (!cr) {
1593
1593
                perror("Can't allocate memory");
1594
1594
                exit(1);
1658
1658
                exit(1);
1659
1659
        }
1660
1660
 
1661
 
        cr = malloc(sizeof(*cr) + 2*sizeof(struct hci_conn_info));
 
1661
        cr = malloc(sizeof(*cr) + sizeof(struct hci_conn_info));
1662
1662
        if (!cr) {
1663
1663
                perror("Can't allocate memory");
1664
1664
                exit(1);
1739
1739
                exit(1);
1740
1740
        }
1741
1741
 
1742
 
        cr = malloc(sizeof(*cr) + 2*sizeof(struct hci_conn_info));
 
1742
        cr = malloc(sizeof(*cr) + sizeof(struct hci_conn_info));
1743
1743
        if (!cr) {
1744
1744
                perror("Can't allocate memory");
1745
1745
                exit(1);
1817
1817
                exit(1);
1818
1818
        }
1819
1819
 
1820
 
        cr = malloc(sizeof(*cr) + 2*sizeof(struct hci_conn_info));
 
1820
        cr = malloc(sizeof(*cr) + sizeof(struct hci_conn_info));
1821
1821
        if (!cr) {
1822
1822
                perror("Can't allocate memory");
1823
1823
                exit(1);
1910
1910
                exit(1);
1911
1911
        }
1912
1912
 
1913
 
        cr = malloc(sizeof(*cr) + 2*sizeof(struct hci_conn_info));
 
1913
        cr = malloc(sizeof(*cr) + sizeof(struct hci_conn_info));
1914
1914
        if (!cr) {
1915
1915
                perror("Can't allocate memory");
1916
1916
                exit(1);
1994
1994
                exit(1);
1995
1995
        }
1996
1996
 
1997
 
        cr = malloc(sizeof(*cr) + 2*sizeof(struct hci_conn_info));
 
1997
        cr = malloc(sizeof(*cr) + sizeof(struct hci_conn_info));
1998
1998
        if (!cr) {
1999
1999
                perror("Can't allocate memory");
2000
2000
                exit(1);
2060
2060
                exit(1);
2061
2061
        }
2062
2062
 
2063
 
        cr = malloc(sizeof(*cr) + 2*sizeof(struct hci_conn_info));
 
2063
        cr = malloc(sizeof(*cr) + sizeof(struct hci_conn_info));
2064
2064
        if (!cr) {
2065
2065
                perror("Can't allocate memory");
2066
2066
                exit(1);
2127
2127
                exit(1);
2128
2128
        }
2129
2129
 
2130
 
        cr = malloc(sizeof(*cr) + 2*sizeof(struct hci_conn_info));
 
2130
        cr = malloc(sizeof(*cr) + sizeof(struct hci_conn_info));
2131
2131
        if (!cr) {
2132
2132
                perror("Can't allocate memory");
2133
2133
                exit(1);
2193
2193
                exit(1);
2194
2194
        }
2195
2195
 
2196
 
        cr = malloc(sizeof(*cr) + 2*sizeof(struct hci_conn_info));
 
2196
        cr = malloc(sizeof(*cr) + sizeof(struct hci_conn_info));
2197
2197
        if (!cr) {
2198
2198
                perror("Can't allocate memory");
2199
2199
                exit(1);
2270
2270
        }
2271
2271
 
2272
2272
        if (bacmp(&bdaddr, BDADDR_ANY)) {
2273
 
                cr = malloc(sizeof(*cr) + 2*sizeof(struct hci_conn_info));
 
2273
                cr = malloc(sizeof(*cr) + sizeof(struct hci_conn_info));
2274
2274
                if (!cr) {
2275
2275
                        perror("Can't allocate memory");
2276
2276
                        exit(1);