diff options
Diffstat (limited to 'capplets/file-types/libuuid/pack.c')
-rw-r--r-- | capplets/file-types/libuuid/pack.c | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/capplets/file-types/libuuid/pack.c b/capplets/file-types/libuuid/pack.c deleted file mode 100644 index 94be488aa..000000000 --- a/capplets/file-types/libuuid/pack.c +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Internal routine for packing UUID's - * - * 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_pack(struct uuid *uu, uuid_t ptr) -{ - guint32 tmp; - unsigned char *out = ptr; - - tmp = uu->time_low; - out[3] = (unsigned char) tmp; - tmp >>= 8; - out[2] = (unsigned char) tmp; - tmp >>= 8; - out[1] = (unsigned char) tmp; - tmp >>= 8; - out[0] = (unsigned char) tmp; - - tmp = uu->time_mid; - out[5] = (unsigned char) tmp; - tmp >>= 8; - out[4] = (unsigned char) tmp; - - tmp = uu->time_hi_and_version; - out[7] = (unsigned char) tmp; - tmp >>= 8; - out[6] = (unsigned char) tmp; - - tmp = uu->clock_seq; - out[9] = (unsigned char) tmp; - tmp >>= 8; - out[8] = (unsigned char) tmp; - - memcpy(out+10, uu->node, 6); -} - |