summaryrefslogtreecommitdiff
path: root/src/apk_io.h
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2020-10-02 15:25:12 +0300
committerTimo Teräs <timo.teras@iki.fi>2020-10-02 15:25:49 +0300
commit72bb6231eea1333f4e54b12adf01f5fa3eed6b96 (patch)
tree2a03aaf9e92a739202dd18c866bca29efe1996fc /src/apk_io.h
parent7377eb74961e13b51acda1b0f8d765984a09c3f0 (diff)
downloadapk-tools-72bb6231eea1333f4e54b12adf01f5fa3eed6b96.tar.gz
apk-tools-72bb6231eea1333f4e54b12adf01f5fa3eed6b96.tar.bz2
apk-tools-72bb6231eea1333f4e54b12adf01f5fa3eed6b96.tar.xz
apk-tools-72bb6231eea1333f4e54b12adf01f5fa3eed6b96.zip
io: make ostream_file always use tmpname
Diffstat (limited to 'src/apk_io.h')
-rw-r--r--src/apk_io.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/apk_io.h b/src/apk_io.h
index 87b953e..02edf1d 100644
--- a/src/apk_io.h
+++ b/src/apk_io.h
@@ -147,7 +147,7 @@ struct apk_ostream {
struct apk_ostream *apk_ostream_gzip(struct apk_ostream *);
struct apk_ostream *apk_ostream_counter(off_t *);
struct apk_ostream *apk_ostream_to_fd(int fd);
-struct apk_ostream *apk_ostream_to_file(int atfd, const char *file, const char *tmpfile, mode_t mode);
+struct apk_ostream *apk_ostream_to_file(int atfd, const char *file, mode_t mode);
struct apk_ostream *apk_ostream_to_file_gz(int atfd, const char *file, const char *tmpfile, mode_t mode);
size_t apk_ostream_write_string(struct apk_ostream *ostream, const char *string);
static inline void apk_ostream_cancel(struct apk_ostream *os, int rc) { if (!os->rc) os->rc = rc; }