services: dovecot: Fix predicate names for free-form fields

* gnu/services/mail.scm (free-form-fields?, free-form-args?): Change
'string' to 'string?'.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Alexey Abramov 2019-09-16 16:42:15 +02:00 committed by Ludovic Courtès
parent 7150743522
commit ad34409e85
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 2 additions and 2 deletions

View File

@ -137,7 +137,7 @@
(define (free-form-fields? val) (define (free-form-fields? val)
(match val (match val
(() #t) (() #t)
((((? symbol?) . (? string)) . val) (free-form-fields? val)) ((((? symbol?) . (? string?)) . val) (free-form-fields? val))
(_ #f))) (_ #f)))
(define (serialize-free-form-fields field-name val) (define (serialize-free-form-fields field-name val)
(for-each (match-lambda ((k . v) (serialize-field k v))) val)) (for-each (match-lambda ((k . v) (serialize-field k v))) val))
@ -145,7 +145,7 @@
(define (free-form-args? val) (define (free-form-args? val)
(match val (match val
(() #t) (() #t)
((((? symbol?) . (? string)) . val) (free-form-args? val)) ((((? symbol?) . (? string?)) . val) (free-form-args? val))
(_ #f))) (_ #f)))
(define (serialize-free-form-args field-name val) (define (serialize-free-form-args field-name val)
(serialize-field field-name (serialize-field field-name