diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2020-03-30 21:30:45 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2020-03-30 21:30:45 +0200 |
commit | ee770c2346eb37e0dcb8b6cf3eaacf3d8efd6bbc (patch) | |
tree | 58f05092be1a17a939e861f8cadcda1b6ca2ecef /backend/snapscan-mutex.c | |
parent | 0da9e21872802cfc6e975b1ebaf9efb9e5934d84 (diff) | |
parent | fef76e17ed4c607ea73b81279f9ef1d7121be900 (diff) |
Merge branch 'release/experimental/1.0.29-1_experimental1'experimental/1.0.29-1_experimental1
Diffstat (limited to 'backend/snapscan-mutex.c')
-rw-r--r-- | backend/snapscan-mutex.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/backend/snapscan-mutex.c b/backend/snapscan-mutex.c index ad0538a..72b8fe1 100644 --- a/backend/snapscan-mutex.c +++ b/backend/snapscan-mutex.c @@ -1,8 +1,8 @@ /* Mutex implementation for SnapScan backend - + Copyright (C) 2000, 2004 Henrik Johansson, Oliver Schwartz - + This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the @@ -38,7 +38,7 @@ If you write modifications of your own for SANE, it is your choice whether to permit this exception to apply to your modifications. If you do not wish that, delete this exception notice.*/ - + #if defined __BEOS__ #include <OS.h> @@ -122,14 +122,14 @@ static unsigned int snapscani_bernstein(const unsigned char* str) { unsigned int hash = 5381; /* some arbitrary number */ int c; - + while (*str) { - c = *str++; + c = *str++; hash = ((hash << 5) + hash) + c; } return hash; -} +} static int snapscani_mutex_open(snapscan_mutex_t* sem_id, const char* dev) { |