openbsd-ports/devel/opencm/patches.nogc/patch-base_src_common_CommitInfo_c
todd 31057a08c0 update to 0.1.2alpha5pl2 from 0.1.0alpha18
see http://www.opencm.org/news.html for hilights of this update, major
noteworthy changes include:

- sxd has gone away, gzfs is 'interim' while 'sxd2' is almost ready
- if you have an old sxd repository, read the mailing list archives for
  how to update (use an interum version)
- an incompatible update to the server/client protocol requires that you
  update both at the same time

(as a reminder, this is 'alpha' and as such is subject to incompatible changes
 like the above.  expect more to come when sxd2 emerges)

Also, add a 'nogc' flavor that removes the dependency on boehm-gc, at the
cost of not free()'ing all memory allocated (read: at the moment, most).
2003-05-23 13:22:14 +00:00

38 lines
1.3 KiB
Plaintext

$OpenBSD: patch-base_src_common_CommitInfo_c,v 1.1 2003/05/23 13:22:14 todd Exp $
--- base/src/common/CommitInfo.c.orig Sat Mar 29 16:15:32 2003
+++ base/src/common/CommitInfo.c Thu May 22 17:46:42 2003
@@ -74,12 +74,13 @@ void
commitinfo_show(const void *vp)
{
const CommitInfo *ci = vp;
+ char *xstr;
report(0, "Date: %s\n", CMGET(ci,time));
report(0, "AuthorURI: %s\n", CMGET(ci,authorURI));
report(0, "BranchURI: %s\n", CMGET(ci,branchURI));
- report(0, "Branch Version: %s\n",
- xunsigned64_str(CMGET(ci,branchVersion)));
+ xstr = xunsigned64_str(CMGET(ci,branchVersion));
+ report(0, "Branch Version: %s\n", xstr);
report(0, "Descrip:\n%s\n", buffer_asString(CMGET(ci,descrip)));
}
@@ -98,7 +99,7 @@ commitinfo_serialize(SDR_stream *strm, c
void *
commitinfo_deserialize(const DeserializeInfo *di, SDR_stream *strm)
{
- CommitInfo *ci = (CommitInfo *) GC_MALLOC(sizeof(CommitInfo));
+ CommitInfo *ci = (CommitInfo *) malloc(sizeof(CommitInfo));
ser_init(ci, &CommitInfo_SerType, di->ver);
SER_MODIFIED(ci);
@@ -130,7 +131,7 @@ CommitInfo *
commitinfo_create(const Buffer *descrip, const char *authorURI,
const char *branchURI, uint64_t rev)
{
- CommitInfo *ci = (CommitInfo *) GC_MALLOC(sizeof(CommitInfo));
+ CommitInfo *ci = (CommitInfo *) malloc(sizeof(CommitInfo));
assert(authorURI);