aboutsummaryrefslogtreecommitdiff
path: root/src/triplet.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/triplet.c')
-rw-r--r--src/triplet.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/triplet.c b/src/triplet.c
index bfd58e5..c214385 100644
--- a/src/triplet.c
+++ b/src/triplet.c
@@ -51,13 +51,13 @@ hash_triplet_free (void *data)
free (tp->file[i].name);
}
free (tp->directive);
free (tp->blurb);
free (tp->tmp);
- obstack_free (&tp->obstk, NULL);
+ txtacc_free (tp->acc);
/* Free uploader list */
for (up = tp->uploader_list; up; )
{
struct uploader_info *next = up->next;
free (up);
@@ -68,14 +68,14 @@ hash_triplet_free (void *data)
}
char *
triplet_strdup (struct file_triplet *tp, const char *str)
{
size_t len = strlen (str);
- obstack_grow (&tp->obstk, str, len + 1);
- return obstack_finish (&tp->obstk);
+ txtacc_grow (tp->acc, str, len + 1);
+ return txtacc_finish (tp->acc);
}
/* Register a file in the triplet table */
void
register_file (struct file_info *finfo, const struct spool *spool)
{
@@ -102,13 +102,13 @@ register_file (struct file_info *finfo, const struct spool *spool)
if (!ret)
grecs_alloc_die ();
free (key.name);
if (install)
{
ret->spool = spool;
- obstack_init (&ret->obstk);
+ ret->acc = txtacc_create ();
}
ret->file[finfo->type] = *finfo;
}
/* Return true if any part of the triplet TRP was modified more than
TTL seconds ago */

Return to:

Send suggestions and report system problems to the System administrator.