OSSP CVS Repository

ossp - Difference in ossp-pkg/uuid/uuid_cli.c versions 1.3 and 1.4
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

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

--- uuid_cli.c   2004/01/08 21:31:47     1.3
+++ uuid_cli.c   2004/01/09 11:28:56     1.4
@@ -156,8 +156,8 @@
         }
         for (i = 0; i < count; i++) {
             if (iterate) {
-                if ((rc = uuid_null(uuid)) != UUID_RC_OK)
-                    error(1, "uuid_null: %s", uuid_error(rc));
+                if ((rc = uuid_nil(uuid)) != UUID_RC_OK)
+                    error(1, "uuid_nil: %s", uuid_error(rc));
             }
             if (version == UUID_VERSION3)
                 rc = uuid_generate(uuid, version, argv[0]);
@@ -167,15 +167,15 @@
                 error(1, "uuid_generate: %s", uuid_error(rc));
             if (ascii) {
                 cp = NULL;
-                if ((rc = uuid_format(uuid, &cp)) != UUID_RC_OK)
-                    error(1, "uuid_format: %s", uuid_error(rc));
+                if ((rc = uuid_unparse(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_write(uuid, &vp)) != UUID_RC_OK)
-                    error(1, "uuid_format: %s", uuid_error(rc));
+                if ((rc = uuid_unpack(uuid, &vp)) != UUID_RC_OK)
+                    error(1, "uuid_unpack: %s", uuid_error(rc));
                 fwrite(vp, UUID_LEN_BIN, 1, fp);
                 free(vp);
             }

CVSTrac 2.0.1