aboutsummaryrefslogtreecommitdiff
path: root/src/triplet.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2019-07-18 18:34:54 +0300
committerSergey Poznyakoff <gray@gnu.org>2019-07-18 18:34:54 +0300
commitf6657a46e2422d903d62565868f77c430a612a42 (patch)
treeb70b4f45003e067de55a8ac425792c98fd06035d /src/triplet.c
parent3a16bc5620b4c664248bc5b5c586ddd0103f7050 (diff)
downloadwydawca-f6657a46e2422d903d62565868f77c430a612a42.tar.gz
wydawca-f6657a46e2422d903d62565868f77c430a612a42.tar.bz2
Fix unnecessary code duplication
Use grecs_txtacc.
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 0ab597d..067bc01 100644
--- a/src/triplet.c
+++ b/src/triplet.c
@@ -169,7 +169,7 @@ hash_triplet_free(void *data)
free(tp->directive);
free(tp->blurb);
free(tp->tmp);
- txtacc_free(tp->acc);
+ grecs_txtacc_free(tp->acc);
/* Free uploader and admin lists */
wy_userlist_free(tp->uploader_list);
@@ -182,8 +182,8 @@ char *
triplet_strdup(struct wy_triplet *tp, const char *str)
{
size_t len = strlen(str);
- txtacc_grow(tp->acc, str, len + 1);
- return txtacc_finish(tp->acc, 0);
+ grecs_txtacc_grow(tp->acc, str, len + 1);
+ return grecs_txtacc_finish(tp->acc, 0);
}
/* Register a file in the triplet table */
@@ -216,7 +216,7 @@ register_file(struct file_info *finfo, const struct spool *spool)
free(key.name);
if (install) {
ret->spool = spool;
- ret->acc = txtacc_create();
+ ret->acc = grecs_txtacc_create();
}
ret->file[finfo->type] = *finfo;
triplet_list_unlink(ret);

Return to:

Send suggestions and report system problems to the System administrator.