OSSP CVS Repository

ossp - Check-in [3701]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 3701
Date: 2004-Jan-06 21:29:51 (local)
2004-Jan-06 20:29:51 (UTC)
User:rse
Branch:
Comment: simplify API
Tickets:
Inspections:
Files:
ossp-pkg/uuid/uuid.h      1.1 -> 1.2     3 inserted, 5 deleted
ossp-pkg/uuid/uuid_cli.c      1.1 -> 1.2     1 inserted, 1 deleted
ossp-pkg/uuid/uuidtool.c      1.1 -> 1.2     1 inserted, 1 deleted

ossp-pkg/uuid/uuid.h 1.1 -> 1.2

--- uuid.h       2004/01/06 20:14:28     1.1
+++ uuid.h       2004/01/06 20:29:51     1.2
@@ -67,11 +67,9 @@
  *  "f81d4fae-7dec-11d0-a765-00a0c91e6bf6"
  */
 
-/* encoding lengths */
-#define UUID_LEN_BIN_BIT 128
-#define UUID_LEN_BIN_CHR (UUID_LEN_BIN_BIT / 8 /*bytes*/)
-#define UUID_LEN_STR_CHR (UUID_LEN_BIN_BIT / 4 /*nibbles*/ + 4 /*hyphens*/ + 1 /*nul*/)
-#define UUID_LEN_STR_BIT (UUID_LEN_STR_CHR * 8)
+/* encoding octet stream lengths */
+#define UUID_LEN_BIN (128 / 8 /*bytes*/)
+#define UUID_LEN_STR (128 / 4 /*nibbles*/ + 4 /*hyphens*/ + 1 /*nul*/)
 
 /* return codes */
 typedef enum {


ossp-pkg/uuid/uuid_cli.c 1.1 -> 1.2

--- uuid_cli.c   2004/01/06 20:14:28     1.1
+++ uuid_cli.c   2004/01/06 20:29:51     1.2
@@ -148,7 +148,7 @@
                 vp = NULL;
                 if ((rc = uuid_write(uuid, &vp)) != UUID_RC_OK)
                     error(1, "uuid_format: %s", uuid_error(rc));
-                fwrite(vp, UUID_LEN_BIN_CHR, 1, fp);
+                fwrite(vp, UUID_LEN_BIN, 1, fp);
                 free(vp);
             }
         }


CVSTrac 2.0.1