X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=contrib%2Fsb-simple-streams%2Fsimple-streams.lisp;h=31db6dd653e0869f2026df1cd339f52823a78dc4;hb=8dc1241068db5855115a9e25488a8962718a6c79;hp=47ab39937d300c0a050cead6e1422d9544bfeabe;hpb=ce58e434470b1ebefae6132d9c075c7d8a2c0c13;p=sbcl.git diff --git a/contrib/sb-simple-streams/simple-streams.lisp b/contrib/sb-simple-streams/simple-streams.lisp index 47ab399..31db6dd 100644 --- a/contrib/sb-simple-streams/simple-streams.lisp +++ b/contrib/sb-simple-streams/simple-streams.lisp @@ -240,7 +240,7 @@ ;; Handle encapsulated stream. FIXME: perhaps handle ;; sbcl-vintage ansi-stream type in read-octets too? (stream (read-octets fd buffer start end blocking)) - (t (error "Don't know how to handle input handle &S" fd)))))) + (t (error "Don't know how to handle input handle ~S" fd)))))) (defun write-octets (stream buffer start end blocking) (declare (type simple-stream stream) @@ -345,16 +345,14 @@ start end blocking) (when (and (null buffer) (not (eql start end))) (with-stream-class (single-channel-simple-stream stream) - (setf buffer (sm buffer stream)) - (setf end (sm buffpos stream)))) + (setf buffer (sm buffer stream)))) (write-octets stream buffer start end blocking)) (defmethod device-write ((stream dual-channel-simple-stream) buffer start end blocking) (when (and (null buffer) (not (eql start end))) (with-stream-class (dual-channel-simple-stream stream) - (setf buffer (sm out-buffer stream)) - (setf end (sm outpos stream)))) + (setf buffer (sm out-buffer stream)))) (write-octets stream buffer start end blocking)) (defmethod device-clear-output ((stream simple-stream))