aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Devos <maximedevos@telenet.be>2021-02-03 17:53:30 +0100
committerMaxime Devos <maximedevos@telenet.be>2021-09-21 12:08:34 +0200
commita94bf06a36997149fb38e98b48f4505c3024308e (patch)
tree2116aa46ed34d651e0217d566aa589954701d880
parent495247f12083021a82eabbe0be9a0c4019fbd67a (diff)
downloadgnunet-scheme-a94bf06a36997149fb38e98b48f4505c3024308e.tar.gz
gnunet-scheme-a94bf06a36997149fb38e98b48f4505c3024308e.zip
mq: fix make-envelope/dll constructor.
* gnu/gnunet/message/make-envelope/dll (<envelope/dll>): specify parent type. (make-envelope/dll): use parent constructor.
-rw-r--r--gnu/gnunet/message/envelope.scm5
1 files changed, 3 insertions, 2 deletions
diff --git a/gnu/gnunet/message/envelope.scm b/gnu/gnunet/message/envelope.scm
index cf2fc41..749017a 100644
--- a/gnu/gnunet/message/envelope.scm
+++ b/gnu/gnunet/message/envelope.scm
@@ -97,14 +97,15 @@ This may only be done once."
97 "A variant of @code{make-envelope}, that organises envelopes 97 "A variant of @code{make-envelope}, that organises envelopes
98in a linked list. The capability @var{cap} will be required for accessing 98in a linked list. The capability @var{cap} will be required for accessing
99and modifying this list." 99and modifying this list."
100 (apply %make cap #f #f args)))) 100 ((apply %make args) cap #f #f))))
101 (parent <envelope>)
101 (sealed #f) 102 (sealed #f)
102 (opaque #t)) 103 (opaque #t))
103 104
104 (define (envelope-dll-check ev/dll cap) 105 (define (envelope-dll-check ev/dll cap)
105 "Verify whether the capability @var{cap} can be used 106 "Verify whether the capability @var{cap} can be used
106for accessing the underlying DLL of the envelope @var{ev}. 107for accessing the underlying DLL of the envelope @var{ev}.
107If not, raise an exception." 108If not, raise an exception. Otherwise, return truth."
108 ;; FIXME &bad-capability exception? 109 ;; FIXME &bad-capability exception?
109 (assert (eq? (%envelope/dll-capability ev/dll) cap))) 110 (assert (eq? (%envelope/dll-capability ev/dll) cap)))
110 111