chiark / gitweb /
volume_id: hfs - calculate proper uuid
[elogind.git] / extras / volume_id / lib / util.c
index 2a63efe8f7e2aa9793c3de8b361056306ef6fbee..e71d6208c5aadc325398318752943d882979fd21 100644 (file)
@@ -26,6 +26,7 @@
 #include <sys/stat.h>
 
 #include "libvolume_id.h"
+#include "libvolume_id-private.h"
 #include "util.h"
 
 /* count of characters used to encode one unicode char */
@@ -268,7 +269,6 @@ void volume_id_set_uuid(struct volume_id *id, const uint8_t *buf, size_t len, en
                count = 4;
                break;
        case UUID_64BIT_LE:
-       case UUID_64BIT_BE:
                count = 8;
                break;
        case UUID_DCE:
@@ -301,11 +301,6 @@ set:
                        buf[7], buf[6], buf[5], buf[4],
                        buf[3], buf[2], buf[1], buf[0]);
                break;
-       case UUID_64BIT_BE:
-               sprintf(id->uuid,"%02X%02X%02X%02X%02X%02X%02X%02X",
-                       buf[0], buf[1], buf[2], buf[3],
-                       buf[4], buf[5], buf[6], buf[7]);
-               break;
        case UUID_DCE:
                sprintf(id->uuid,
                        "%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",