OSSP CVS Repository

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

Check-in Number: 3716
Date: 2004-Jan-09 17:11:40 (local)
2004-Jan-09 16:11:40 (UTC)
User:rse
Branch:
Comment: use format instead of unparse and fix pack/unpack usage
Tickets:
Inspections:
Files:
ossp-pkg/uuid/uuid.c      1.6 -> 1.7     1 inserted, 1 deleted
ossp-pkg/uuid/uuid.h      1.5 -> 1.6     1 inserted, 1 deleted
ossp-pkg/uuid/uuid_cli.c      1.4 -> 1.5     3 inserted, 3 deleted
ossp-pkg/uuid/uuidtool.c      1.4 -> 1.5     3 inserted, 3 deleted

ossp-pkg/uuid/uuid.c 1.6 -> 1.7

--- uuid.c       2004/01/09 11:32:06     1.6
+++ uuid.c       2004/01/09 16:11:40     1.7
@@ -370,7 +370,7 @@
     return UUID_RC_OK;
 }
 
-uuid_rc_t uuid_unparse(uuid_t *uuid, char **str)
+uuid_rc_t uuid_format(uuid_t *uuid, char **str)
 {
     uuid_t uuid_tmp;
 


ossp-pkg/uuid/uuid.h 1.5 -> 1.6

--- uuid.h       2004/01/09 11:28:56     1.5
+++ uuid.h       2004/01/09 16:11:40     1.6
@@ -106,7 +106,7 @@
 
 /* string representation handling */
 extern uuid_rc_t  uuid_parse    (uuid_t  *uuid, const char  *str);
-extern uuid_rc_t  uuid_unparse  (uuid_t  *uuid,       char **str);
+extern uuid_rc_t  uuid_format   (uuid_t  *uuid,       char **str);
 
 /* UUID generation and dumping */
 extern uuid_rc_t  uuid_generate (uuid_t  *uuid, unsigned int mode, ...);


ossp-pkg/uuid/uuid_cli.c 1.4 -> 1.5

--- uuid_cli.c   2004/01/09 11:28:56     1.4
+++ uuid_cli.c   2004/01/09 16:11:40     1.5
@@ -167,16 +167,16 @@
                 error(1, "uuid_generate: %s", uuid_error(rc));
             if (ascii) {
                 cp = NULL;
-                if ((rc = uuid_unparse(uuid, &cp)) != UUID_RC_OK)
+                if ((rc = uuid_format(uuid, &cp)) != UUID_RC_OK)
                     error(1, "uuid_unparse: %s", uuid_error(rc));
                 fprintf(fp, "%s\n", cp);
                 free(cp);
             }
             else {
                 vp = NULL;
-                if ((rc = uuid_unpack(uuid, &vp)) != UUID_RC_OK)
+                if ((rc = uuid_pack(uuid, &vp)) != UUID_RC_OK)
                     error(1, "uuid_unpack: %s", uuid_error(rc));
-                fwrite(vp, UUID_LEN_BIN, 1, fp);
+                fwrite(vp, UUID_LEN_BIN, 1, vp);
                 free(vp);
             }
         }


CVSTrac 2.0.1