diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2021-05-18 07:43:35 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2021-05-18 07:43:35 +0200 |
commit | 9f8889f928ce86ba4a78659d378c6ba29bc9f735 (patch) | |
tree | c9567cb0d015b68ce3da8d03472b6443f1cb1ca9 /backend/qcam.c | |
parent | 446e9454b8cbe5b689149415d11d36e88442ca88 (diff) | |
parent | 154785ab2d5df7ddc8c2cf813b773c340e5e2aea (diff) |
Merge branch 'release/debian/1.0.32-1'debian/1.0.32-1
Diffstat (limited to 'backend/qcam.c')
-rw-r--r-- | backend/qcam.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/backend/qcam.c b/backend/qcam.c index 4c46fa7..9b1d7a3 100644 --- a/backend/qcam.c +++ b/backend/qcam.c @@ -13,9 +13,7 @@ General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, - MA 02111-1307, USA. + along with this program. If not, see <https://www.gnu.org/licenses/>. As a special exception, the authors of SANE give permission for additional uses of the libraries contained in this release of SANE. @@ -234,7 +232,7 @@ disable_ports (QC_Device * q) return SANE_STATUS_GOOD; } -/* We need a short delay loop -- somthing well under a millisecond. +/* We need a short delay loop -- something well under a millisecond. Unfortunately, adding 2 usleep(1)'s to qc_command slowed it down by a factor of over 1000 over the same loop with 2 usleep(0)'s, and that's too slow -- qc_start was taking over a second to run. This @@ -258,7 +256,7 @@ qc_wait (QC_Device * q) termination, so "dead locks" are not a problem. (FYI, the lock file will remain after process termination, but this is actually desired so that the next process need not re-creat(2)e it... just - lock it.) The wait argument indicates whether or not this funciton + lock it.) The wait argument indicates whether or not this function should "block" waiting for the previous lock to be relinquished. This is ideal so that multiple processes (eg. qcam) taking "snapshots" can peacefully coexist. @@ -1944,7 +1942,7 @@ sane_start (SANE_Handle handle) } s->read_fd = dup (s->from_child); - sane_get_parameters (s, 0); /* ensure uptodate parameters */ + sane_get_parameters (s, 0); /* ensure up-to-date parameters */ qc_lock (q); s->holding_lock = SANE_TRUE; |