sane-project-website/old-archive/1997-07/0141.html

61 wiersze
2.6 KiB
HTML

<!-- received="Sun Jul 27 03:52:52 1997 MST" -->
<!-- sent="Sun, 27 Jul 1997 09:37:21 +0200 (MET DST)" -->
<!-- name="Rogier Wolff" -->
<!-- email="R.E.Wolff@BitWizard.nl" -->
<!-- subject="Re: sane-0.62 released" -->
<!-- id="199707270737.JAA02727@cave.BitWizard.nl" -->
<!-- inreplyto="199707270028.RAA16119@panda.mosberger" -->
<title>sane-devel: Re: sane-0.62 released</title>
<h1>Re: sane-0.62 released</h1>
<b>Rogier Wolff</b> (<a href="mailto:R.E.Wolff@BitWizard.nl"><i>R.E.Wolff@BitWizard.nl</i></a>)<br>
<i>Sun, 27 Jul 1997 09:37:21 +0200 (MET DST)</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#141">[ date ]</a><a href="index.html#141">[ thread ]</a><a href="subject.html#141">[ subject ]</a><a href="author.html#141">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0142.html">Rogier Wolff: "Re: sane-0.62 released"</a>
<li> <b>Previous message:</b> <a href="0140.html">David Mosberger-Tang: "sane-0.62 released"</a>
<li> <b>In reply to:</b> <a href="0140.html">David Mosberger-Tang: "sane-0.62 released"</a>
<!-- nextthread="start" -->
<li> <b>Next in thread:</b> <a href="0143.html">David Mosberger-Tang: "Re: sane-0.62 released"</a>
<li> <b>Reply:</b> <a href="0143.html">David Mosberger-Tang: "Re: sane-0.62 released"</a>
<!-- reply="end" -->
</ul>
<!-- body="start" -->
David,<br>
<p>
Can you explain this to me:<br>
<p>
<p>
nread = read (s-&gt;pipe, buf, max_len);<br>
DBG(3, "read %ld bytes\n", (long) nread);<br>
<p>
if (!s-&gt;scanning)<br>
return do_stop (s);<br>
<p>
<p>
Why do you first try to read data from the pipe, and only then <br>
do the check for s-&gt;scanning? When would s-&gt;scanning get changed?<br>
<p>
If s-&gt;scanning is false, why would you still need to "do_stop"?<br>
<p>
Roger.<br>
<p>
<pre>
--
Source code, list archive, and docs: <a href="http://www.azstarnet.com/~axplinux/sane/">http://www.azstarnet.com/~axplinux/sane/</a>
To unsubscribe: mail -s unsubscribe <a href="mailto:sane-devel-request@listserv.azstarnet.com">sane-devel-request@listserv.azstarnet.com</a>
</pre>
<!-- body="end" -->
<p>
<ul>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0142.html">Rogier Wolff: "Re: sane-0.62 released"</a>
<li> <b>Previous message:</b> <a href="0140.html">David Mosberger-Tang: "sane-0.62 released"</a>
<li> <b>In reply to:</b> <a href="0140.html">David Mosberger-Tang: "sane-0.62 released"</a>
<!-- nextthread="start" -->
<li> <b>Next in thread:</b> <a href="0143.html">David Mosberger-Tang: "Re: sane-0.62 released"</a>
<li> <b>Reply:</b> <a href="0143.html">David Mosberger-Tang: "Re: sane-0.62 released"</a>
<!-- reply="end" -->
</ul>