utils: for-each-file: Use named let.
* src/mcron/utils.scm (for-each-file): Use named 'let' instead of 'do'.
This commit is contained in:
parent
61f85be19d
commit
2d6c072b47
1 changed files with 6 additions and 3 deletions
|
|
@ -92,9 +92,12 @@ General help using GNU software: <http://www.gnu.org/gethelp/>\n"
|
|||
PROC must be a procedure that take one file name argument. The return value
|
||||
is not specified"
|
||||
(let ((dir (opendir directory)))
|
||||
(do ((file-name (readdir dir) (readdir dir)))
|
||||
((eof-object? file-name) (closedir dir))
|
||||
(proc file-name))))
|
||||
(let loop ((file-name (readdir dir)))
|
||||
(if (eof-object? file-name)
|
||||
(closedir dir)
|
||||
(begin
|
||||
(proc file-name)
|
||||
(loop (readdir dir)))))))
|
||||
|
||||
(define (process-update-request fdes-list)
|
||||
"Read a user name from the socket, dealing with the /etc/crontab special
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue