guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

06/06: store: Use 'write-bytevector' instead of hand-coded equivalent.


From: Ludovic Courtès
Subject: 06/06: store: Use 'write-bytevector' instead of hand-coded equivalent.
Date: Thu, 4 May 2017 12:05:12 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit 396d12faea2dcfeae2572818b55a00d90b4bd213
Author: Ludovic Courtès <address@hidden>
Date:   Thu May 4 16:41:30 2017 +0200

    store: Use 'write-bytevector' instead of hand-coded equivalent.
    
    * guix/store.scm (process-stderr): Use 'write-bytevector' in the
    %STDERR-READ case.
---
 guix/store.scm | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/guix/store.scm b/guix/store.scm
index ee47703..b71c47b 100644
--- a/guix/store.scm
+++ b/guix/store.scm
@@ -581,9 +581,7 @@ encoding conversion errors."
            (let* ((max-len (read-int p))
                   (data    (make-bytevector max-len))
                   (len     (get-bytevector-n! user-port data 0 max-len)))
-             (write-int len p)
-             (put-bytevector p data 0 len)
-             (write-padding len p)
+             (write-bytevector data p)
              #f))
           ((= k %stderr-next)
            ;; Log a string.  Build logs are usually UTF-8-encoded, but they



reply via email to

[Prev in Thread] Current Thread [Next in Thread]