X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=chiark-tcl.git;a=blobdiff_plain;f=cdb%2Fwriteable.c;h=3c718d83fd813f63e26645839cfba0f02e0bf1a5;hp=0334a45fea0f049c29de372942bfebda07a32bec;hb=2aaa6d9084b8a950151d64b4fe7a483be59b5722;hpb=2b24ccf8dc74b52fad1d1a74f29c5d3fe493d68a diff --git a/cdb/writeable.c b/cdb/writeable.c index 0334a45..3c718d8 100644 --- a/cdb/writeable.c +++ b/cdb/writeable.c @@ -63,13 +63,16 @@ static HashValue *htv_prep(int len) { HashValue *hd; hd= TALLOC((hd->data - (Byte*)hd) + len); hd->len= len; + return hd; } static Byte *htv_fillptr(HashValue *hd) { return hd->data; } +#if 0 static void htv_fill(HashValue *hd, const Byte *data) { memcpy(hd->data, data, hd->len); } +#endif static void ht_setup(HashTable *ht) { Tcl_InitHashTable(&ht->t, TCL_STRING_KEYS);