OSSP CVS Repository

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

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