chiark / gitweb /
Export sd_bus_message_append_ap. It is renamed to sd_bus_message_appendv to follow...
[elogind.git] / src / libelogind / sd-id128 / id128-util.c
index 337eae24b45132adfd5c8f1ba6f7dfe7e094ca36..ce8a6aad09f80d60dff6140c1d9aa4345a1f3125 100644 (file)
@@ -183,10 +183,11 @@ int id128_write_fd(int fd, Id128Format f, sd_id128_t id, bool do_sync) {
         return r;
 }
 
+#if 0 /// UNNEEDED by elogind
 int id128_write(const char *p, Id128Format f, sd_id128_t id, bool do_sync) {
         _cleanup_close_ int fd = -1;
 
-        fd = open(p, O_WRONLY|O_CREAT|O_CLOEXEC|O_NOCTTY, 0444);
+        fd = open(p, O_WRONLY|O_CREAT|O_CLOEXEC|O_NOCTTY|O_TRUNC, 0444);
         if (fd < 0)
                 return -errno;
 
@@ -205,3 +206,4 @@ const struct hash_ops id128_hash_ops = {
         .hash = id128_hash_func,
         .compare = id128_compare_func,
 };
+#endif // 0