More comment and indentation fixes.
This commit is contained in:
parent
3da9d2019d
commit
a138b994ba
|
@ -106,8 +106,7 @@
|
|||
LOG "" "")))
|
||||
(ftp-log connection
|
||||
(format #f "~%-- ~a: opened ftp connection to ~a"
|
||||
(date->string (date)) ; doesn't seem to be buggy in v0.6
|
||||
;"Dummy date" ; (format-time-zone) is buggy in v0.5.1
|
||||
(date->string (date))
|
||||
hostname))
|
||||
(ftp-read-response connection "220") ; the initial welcome banner
|
||||
connection)))
|
||||
|
@ -136,12 +135,13 @@
|
|||
;;: connection x symbol|string -> status
|
||||
(define (ftp-type connection type)
|
||||
(let ((ttype (cond
|
||||
((string? type) type)
|
||||
((eq? type 'binary) "I")
|
||||
((or (eq? type 'ascii)
|
||||
(eq? type 'text)) "A")
|
||||
(else
|
||||
(call-error "type must be one of 'binary or 'text or 'ascii" ftp-type type)))))
|
||||
((string? type) type)
|
||||
((eq? type 'binary) "I")
|
||||
((or (eq? type 'ascii)
|
||||
(eq? type 'text)) "A")
|
||||
(else
|
||||
(call-error "type must be one of 'binary or 'text or 'ascii"
|
||||
ftp-type type)))))
|
||||
(ftp-send-command connection (format #f "TYPE ~a" ttype))))
|
||||
|
||||
;;: connection x string x string -> status
|
||||
|
|
Loading…
Reference in New Issue