--- 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);
}
}
|