]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - man/sd_bus_new.xml
man: move more examples to stand-alone files and use 2-space indentation consistenty
[thirdparty/systemd.git] / man / sd_bus_new.xml
index 5180ae78157da6cb3f443d072173c9d9cbca5a8f..59117676fde93e12cea8ed5f675d7775683594fc 100644 (file)
     block is left:</para>
 
     <programlisting>{
-        __attribute__((cleanup(sd_bus_unrefp)) sd_bus *bus = NULL;
-        int r;
-        
-        r = sd_bus_default(&amp;bus);
-        if (r &lt; 0)
-                fprintf(stderr, "Failed to allocate bus: %s\n", strerror(-r));
-        
+  __attribute__((cleanup(sd_bus_unrefp)) sd_bus *bus = NULL;
+  int r;
+  …
+  r = sd_bus_default(&amp;bus);
+  if (r &lt; 0)
+    fprintf(stderr, "Failed to allocate bus: %s\n", strerror(-r));
+  …
 }</programlisting>
 
     <para><function>sd_bus_ref()</function> and <function>sd_bus_unref()</function>