diff options
Diffstat (limited to 'capplets/file-types/libuuid/unpack.c')
-rw-r--r-- | capplets/file-types/libuuid/unpack.c | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/capplets/file-types/libuuid/unpack.c b/capplets/file-types/libuuid/unpack.c deleted file mode 100644 index 8a80a9962..000000000 --- a/capplets/file-types/libuuid/unpack.c +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Internal routine for unpacking UUID - * - * Copyright (C) 1996, 1997 Theodore Ts'o. - * - * %Begin-Header% - * This file may be redistributed under the terms of the GNU Public - * License. - * %End-Header% - */ - -#include <string.h> -#include "uuidP.h" - -void uuid_unpack(uuid_t in, struct uuid *uu) -{ - guint8 *ptr = in; - guint32 tmp; - - tmp = *ptr++; - tmp = (tmp << 8) | *ptr++; - tmp = (tmp << 8) | *ptr++; - tmp = (tmp << 8) | *ptr++; - uu->time_low = tmp; - - tmp = *ptr++; - tmp = (tmp << 8) | *ptr++; - uu->time_mid = tmp; - - tmp = *ptr++; - tmp = (tmp << 8) | *ptr++; - uu->time_hi_and_version = tmp; - - tmp = *ptr++; - tmp = (tmp << 8) | *ptr++; - uu->clock_seq = tmp; - - memcpy(uu->node, ptr, 6); -} - |