summaryrefslogtreecommitdiff
path: root/backend/snapscan-mutex.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2019-07-31 16:59:49 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2019-07-31 16:59:49 +0200
commit1687222e1b9e74c89cafbb5910e72d8ec7bfd40f (patch)
treed78102ce30207c63e7608eeba743efd680c888dc /backend/snapscan-mutex.c
parent58912f68c2489bcee787599837447e0d64dfd61a (diff)
New upstream version 1.0.28upstream/1.0.28
Diffstat (limited to 'backend/snapscan-mutex.c')
-rw-r--r--backend/snapscan-mutex.c12
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)
{