summaryrefslogtreecommitdiffhomepage
path: root/src/logic
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-07-17 02:11:19 +0000
committermidipix <writeonce@midipix.org>2024-07-17 02:11:19 +0000
commit19fba4c00b514a0c25e6b3537a7dded39d2cc79a (patch)
treedc962e705bcbe9e50add08b756608a8277158119 /src/logic
parenta749fdfc3615246713808529cc1ab7e947040ec7 (diff)
downloadtpax-19fba4c00b514a0c25e6b3537a7dded39d2cc79a.tar.bz2
tpax-19fba4c00b514a0c25e6b3537a7dded39d2cc79a.tar.xz
internals: tpax_archive_append_memory_data(): fix function signature.
Diffstat (limited to 'src/logic')
-rw-r--r--src/logic/tpax_archive_write.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/logic/tpax_archive_write.c b/src/logic/tpax_archive_write.c
index f01bb7b..fbf46a7 100644
--- a/src/logic/tpax_archive_write.c
+++ b/src/logic/tpax_archive_write.c
@@ -15,11 +15,11 @@
static int tpax_archive_append_memory_data(
int fdout,
- void * buf,
+ const void * buf,
ssize_t nbytes)
{
- ssize_t ret;
- char * ch;
+ ssize_t ret;
+ const char * ch;
for (ch=buf; nbytes; ch+=ret) {
ret = write(fdout,ch,nbytes);