~ubuntu-branches/ubuntu/oneiric/bluez/oneiric-proposed

« back to all changes in this revision

Viewing changes to src/sdp-xml.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2011-06-06 18:11:44 UTC
  • mfrom: (1.1.33 upstream) (6.3.13 sid)
  • Revision ID: james.westby@ubuntu.com-20110606181144-28qwmmobedosb2ct
Tags: 4.94-0ubuntu1
* Resynchronize on Debian, remaining diff:
* debian/bluez.bluetooth.default:
  - Drop.  Doesn't do anything now.
* debian/control:
  - use arch: any rather than a list of architectures
* debian/bluez.bluetooth.init:
  - Drop most calls in this script as now all it serves as is to 
    workaround a problem with dbus not being ready early enough. Once dbus is 
    started by an upstart service, this should be able to be converted 
    to an upstart service too.
* debian/rules:
  - Don't build hid2hci anymore.  It's part of udev now.
  - Don't install bluez_agent.udev, doesn't work in Ubuntu.
  - Don't use simple-patchsys
* debian/source_bluez.py, debian/bluez.install:
  - apport hook made by Baptiste Mille-Mathias.      
* debian/source/format: 
  - use source format 3.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
        int i, hex;
48
48
        char buf[STRBUFSIZE];
49
49
        char indent[MAXINDENT];
50
 
        char next_indent[MAXINDENT];
51
50
 
52
51
        if (!value)
53
52
                return;
55
54
        if (indent_level >= MAXINDENT)
56
55
                indent_level = MAXINDENT - 2;
57
56
 
58
 
        for (i = 0; i < indent_level; i++) {
 
57
        for (i = 0; i < indent_level; i++)
59
58
                indent[i] = '\t';
60
 
                next_indent[i] = '\t';
61
 
        }
62
59
 
63
60
        indent[i] = '\0';
64
 
        next_indent[i] = '\t';
65
 
        next_indent[i + 1] = '\0';
66
 
 
67
61
        buf[STRBUFSIZE - 1] = '\0';
68
62
 
69
63
        switch (value->dtd) {
704
698
 
705
699
#define DEFAULT_XML_DATA_SIZE 1024
706
700
 
707
 
struct sdp_xml_data *sdp_xml_data_alloc()
 
701
struct sdp_xml_data *sdp_xml_data_alloc(void)
708
702
{
709
703
        struct sdp_xml_data *elem;
710
704