summaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
authorDan McGee <dpmcgee@gmail.com>2011-11-20 16:48:16 -0600
committerDan McGee <dpmcgee@gmail.com>2011-11-20 16:48:16 -0600
commit36204b1a6e611f44890b5a5d8faa303f3ace251d (patch)
tree91d7392850c86c7e37262af1659f1f31c2111227 /util.c
parenta17dd711cbe5b2b2742faefaf710414e21175f12 (diff)
downloadonkyocontrol-36204b1a6e611f44890b5a5d8faa303f3ace251d.tar.gz
onkyocontrol-36204b1a6e611f44890b5a5d8faa303f3ace251d.zip
Small code cleanups
Signed-off-by: Dan McGee <dpmcgee@gmail.com>
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index b842d31..ffe0258 100644
--- a/util.c
+++ b/util.c
@@ -80,9 +80,9 @@ ssize_t xwrite(int fd, const void *buf, size_t len)
unsigned long hash_sdbm(const char *str)
{
unsigned long hash = 0;
+ int c;
if(!str)
return hash;
- int c;
while((c = *str++))
hash = c + (hash << 6) + (hash << 16) - hash;