diff options
author | Maxime Devos <maximedevos@telenet.be> | 2021-02-03 17:53:30 +0100 |
---|---|---|
committer | Maxime Devos <maximedevos@telenet.be> | 2021-09-21 12:08:34 +0200 |
commit | a94bf06a36997149fb38e98b48f4505c3024308e (patch) | |
tree | 2116aa46ed34d651e0217d566aa589954701d880 | |
parent | 495247f12083021a82eabbe0be9a0c4019fbd67a (diff) | |
download | gnunet-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.scm | 5 |
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 |
98 | in a linked list. The capability @var{cap} will be required for accessing | 98 | in a linked list. The capability @var{cap} will be required for accessing |
99 | and modifying this list." | 99 | and 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 |
106 | for accessing the underlying DLL of the envelope @var{ev}. | 107 | for accessing the underlying DLL of the envelope @var{ev}. |
107 | If not, raise an exception." | 108 | If 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 | ||