summaryrefslogtreecommitdiff
path: root/dpkg-split/split.c
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2011-01-10 20:46:18 +0100
committerGuillem Jover <guillem@debian.org>2011-01-16 10:19:21 +0100
commitaf47d0660e1c1771999e64e4b54e97031c345053 (patch)
tree744b241024082df4f676f04db32c93aedc50fae6 /dpkg-split/split.c
parent66b316d08a64b8f5e64f53d71e267024fb2f6884 (diff)
downloaddpkg-af47d0660e1c1771999e64e4b54e97031c345053.tar.gz
libdpkg: Rename varbufprintf() to varbuf_printf()
Make the varbuf API a bit more consistent.
Diffstat (limited to 'dpkg-split/split.c')
-rw-r--r--dpkg-split/split.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/dpkg-split/split.c b/dpkg-split/split.c
index b68f49f8e..5c8f4f2c3 100644
--- a/dpkg-split/split.c
+++ b/dpkg-split/split.c
@@ -174,15 +174,15 @@ mksplit(const char *file_src, const char *prefix, size_t maxpartsize,
struct varbuf refname = VARBUF_INIT;
int prefix_max;
- varbufprintf(&refname, "%dof%d", curpart, nparts);
+ varbuf_printf(&refname, "%dof%d", curpart, nparts);
prefix_max = max(8 - strlen(refname.buf), 0);
- varbufprintf(&file_dst, "%s/%.*s%.8s.deb",
- prefixdir, prefix_max, prefix,
- refname.buf);
+ varbuf_printf(&file_dst, "%s/%.*s%.8s.deb",
+ prefixdir, prefix_max, prefix,
+ refname.buf);
varbuf_destroy(&refname);
} else {
- varbufprintf(&file_dst, "%s.%dof%d.deb",
- prefix, curpart, nparts);
+ varbuf_printf(&file_dst, "%s.%dof%d.deb",
+ prefix, curpart, nparts);
}
if (curpart == nparts)
@@ -204,15 +204,15 @@ mksplit(const char *file_src, const char *prefix, size_t maxpartsize,
dpkg_ar_put_magic(file_dst.buf, fd_dst);
/* Write the debian-split part. */
- varbufprintf(&partmagic, "%s\n%s\n%s\n%s\n%zu\n%zu\n%d/%d\n",
- SPLITVERSION, package, version, hash,
- st.st_size, partsize, curpart, nparts);
+ varbuf_printf(&partmagic, "%s\n%s\n%s\n%s\n%zu\n%zu\n%d/%d\n",
+ SPLITVERSION, package, version, hash,
+ st.st_size, partsize, curpart, nparts);
dpkg_ar_member_put_mem(file_dst.buf, fd_dst, PARTMAGIC,
partmagic.buf, partmagic.used);
varbuf_reset(&partmagic);
/* Write the data part. */
- varbufprintf(&partname, "data.%d", curpart);
+ varbuf_printf(&partname, "data.%d", curpart);
dpkg_ar_member_put_file(file_dst.buf, fd_dst, partname.buf,
fd_src, partsize);
varbuf_reset(&partname);