about summary refs log tree commit diff
path: root/src/libstore/store-api.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore/store-api.cc')
-rw-r--r--src/libstore/store-api.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/store-api.cc b/src/libstore/store-api.cc
index 80f17d109ad6..bb0bc09330c3 100644
--- a/src/libstore/store-api.cc
+++ b/src/libstore/store-api.cc
@@ -298,10 +298,10 @@ void exportPaths(StoreAPI & store, const Paths & paths,
     bool sign, Sink & sink)
 {
     for (auto & i : paths) {
-        writeInt(1, sink);
+        sink << 1;
         store.exportPath(i, sign, sink);
     }
-    writeInt(0, sink);
+    sink << 0;
 }