summaryrefslogtreecommitdiff
path: root/src/apk_pathbuilder.h
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2021-11-09 21:28:55 +0200
committerTimo Teräs <timo.teras@iki.fi>2021-11-09 21:50:11 +0200
commitc60b7424a0e0b12540112bc14d42f3214f214cd6 (patch)
treeecdda4565bb3498bd2318786beb663d46216f683 /src/apk_pathbuilder.h
parent7c8f8725724a54538ddd4ae03404276725f4fb8f (diff)
downloadapk-tools-c60b7424a0e0b12540112bc14d42f3214f214cd6.tar.gz
apk-tools-c60b7424a0e0b12540112bc14d42f3214f214cd6.tar.bz2
apk-tools-c60b7424a0e0b12540112bc14d42f3214f214cd6.tar.xz
apk-tools-c60b7424a0e0b12540112bc14d42f3214f214cd6.zip
optimize apk_pathbuilder_pop to get the old length
avoids memrchr
Diffstat (limited to 'src/apk_pathbuilder.h')
-rw-r--r--src/apk_pathbuilder.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/apk_pathbuilder.h b/src/apk_pathbuilder.h
index cabf51c..88e79f0 100644
--- a/src/apk_pathbuilder.h
+++ b/src/apk_pathbuilder.h
@@ -18,7 +18,7 @@ struct apk_pathbuilder {
};
int apk_pathbuilder_pushb(struct apk_pathbuilder *pb, apk_blob_t b);
-void apk_pathbuilder_pop(struct apk_pathbuilder *pb);
+void apk_pathbuilder_pop(struct apk_pathbuilder *pb, int);
static inline int apk_pathbuilder_setb(struct apk_pathbuilder *pb, apk_blob_t b)