aboutsummaryrefslogtreecommitdiffstats
path: root/src/implementation.c
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2021-02-22 11:58:37 +0000
committerJoursoir <chat@joursoir.net>2021-02-22 11:58:37 +0000
commit51abd93e4dddf4682f260d192b680be3ba1a0585 (patch)
treecb1d66f5a10d162c9c2cf0abd978ec6b8b62a090 /src/implementation.c
parentc99acd1211e967a87ab7a0de3fb8a569b19fd0b2 (diff)
downloadlock-password-51abd93e4dddf4682f260d192b680be3ba1a0585.tar.gz
lock-password-51abd93e4dddf4682f260d192b680be3ba1a0585.tar.bz2
lock-password-51abd93e4dddf4682f260d192b680be3ba1a0585.zip
change recognizing of commands; many printf -> one printf
Diffstat (limited to 'src/implementation.c')
-rw-r--r--src/implementation.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/implementation.c b/src/implementation.c
index 863b755..9b93704 100644
--- a/src/implementation.c
+++ b/src/implementation.c
@@ -216,17 +216,6 @@ char *generatePassword(char *dest, int amount)
return dest;
}
-unsigned long hash(char *str)
-{
- unsigned long hash = 5381;
- char c;
-
- while( (c = *str++) )
- hash = ((hash << 5) + hash) + c; /* hash * 33 + c */
-
- return hash;
-}
-
static void clearStdinBuff()
{
char garbage;