]> git.proxmox.com Git - systemd.git/blobdiff - man/sd-id128.3
Imported Upstream version 219
[systemd.git] / man / sd-id128.3
index eb760367ad0bd74924ee24edc430fc173af45727..079f1c8a9cbcae9f4a5e19db656e3396872a7941 100644 (file)
@@ -1,5 +1,5 @@
 '\" t
-.TH "SD\-ID128" "3" "" "systemd 218" "sd-id128"
+.TH "SD\-ID128" "3" "" "systemd 219" "sd-id128"
 .\" -----------------------------------------------------------------
 .\" * Define some portability stuff
 .\" -----------------------------------------------------------------
@@ -51,8 +51,8 @@ A 128\-bit ID is implemented as the following union type:
 .\}
 .nf
 typedef union sd_id128 {
-        uint8_t bytes[16];
-        uint64_t qwords[2];
+  uint8_t bytes[16];
+  uint64_t qwords[2];
 } sd_id128_t;
 .fi
 .if n \{\
@@ -84,7 +84,7 @@ may be used to convert constant 128\-bit IDs into constant strings for output\&.
 .\}
 .nf
 int main(int argc, char *argv[]) {
-        puts(SD_ID128_CONST_STR(SD_MESSAGE_COREDUMP));
+  puts(SD_ID128_CONST_STR(SD_MESSAGE_COREDUMP));
 }
 .fi
 .if n \{\
@@ -103,10 +103,10 @@ format string, as shown in the following example:
 .\}
 .nf
 int main(int argc, char *argv[]) {
-        sd_id128_t id;
-        id = SD_ID128_MAKE(ee,89,be,71,bd,6e,43,d6,91,e6,c5,5d,eb,03,02,07);
-        printf("The ID encoded in this C file is " SD_ID128_FORMAT_STR "\&.\en", SD_ID128_FORMAT_VAL(id));
-        return 0;
+  sd_id128_t id;
+  id = SD_ID128_MAKE(ee,89,be,71,bd,6e,43,d6,91,e6,c5,5d,eb,03,02,07);
+  printf("The ID encoded in this C file is " SD_ID128_FORMAT_STR "\&.\en", SD_ID128_FORMAT_VAL(id));
+  return 0;
 }
 .fi
 .if n \{\
@@ -122,13 +122,13 @@ to compare two 128\-bit IDs:
 .\}
 .nf
 int main(int argc, char *argv[]) {
-        sd_id128_t a, b, c;
-        a = SD_ID128_MAKE(ee,89,be,71,bd,6e,43,d6,91,e6,c5,5d,eb,03,02,07);
-        b = SD_ID128_MAKE(f2,28,88,9c,5f,09,44,15,9d,d7,04,77,58,cb,e7,3e);
-        c = a;
-        assert(sd_id128_equal(a, c));
-        assert(!sd_id128_equal(a, b));
-        return 0;
+  sd_id128_t a, b, c;
+  a = SD_ID128_MAKE(ee,89,be,71,bd,6e,43,d6,91,e6,c5,5d,eb,03,02,07);
+  b = SD_ID128_MAKE(f2,28,88,9c,5f,09,44,15,9d,d7,04,77,58,cb,e7,3e);
+  c = a;
+  assert(sd_id128_equal(a, c));
+  assert(!sd_id128_equal(a, b));
+  return 0;
 }
 .fi
 .if n \{\