diff options
author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-05-01 13:48:28 +0000 |
---|---|---|
committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-05-01 13:48:28 +0000 |
commit | f7c45941344ecfbcdd5d9b311b61573d37c6ef58 (patch) | |
tree | 4c2fa595d7209694dd30b0e0b349a0a44116d712 /apps/plugins/keybox.c | |
parent | 08fb3f65745a237e2c1eae55d856ff27702246e5 (diff) | |
download | rockbox-f7c45941344ecfbcdd5d9b311b61573d37c6ef58.tar.gz rockbox-f7c45941344ecfbcdd5d9b311b61573d37c6ef58.zip |
Fix further 'variable set but not used' warnings reported from GCC 4.6.0.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29809 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/keybox.c')
-rw-r--r-- | apps/plugins/keybox.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/plugins/keybox.c b/apps/plugins/keybox.c index 932fc5fd47..570f4e6c76 100644 --- a/apps/plugins/keybox.c +++ b/apps/plugins/keybox.c | |||
@@ -465,7 +465,6 @@ static int parse_buffer(void) | |||
465 | 465 | ||
466 | static void write_output(int fd) | 466 | static void write_output(int fd) |
467 | { | 467 | { |
468 | size_t bytes_written; | ||
469 | int i; | 468 | int i; |
470 | size_t len, size; | 469 | size_t len, size; |
471 | char *p = &buffer[HEADER_LEN]; /* reserve space for salt + hash */ | 470 | char *p = &buffer[HEADER_LEN]; /* reserve space for salt + hash */ |
@@ -498,7 +497,7 @@ static void write_output(int fd) | |||
498 | encrypt_buffer(&buffer[8], size, &key.words[0]); | 497 | encrypt_buffer(&buffer[8], size, &key.words[0]); |
499 | rb->memcpy(&buffer[0], &salt, sizeof(salt)); | 498 | rb->memcpy(&buffer[0], &salt, sizeof(salt)); |
500 | 499 | ||
501 | bytes_written = rb->write(fd, &buffer, size); | 500 | rb->write(fd, &buffer, size); |
502 | } | 501 | } |
503 | 502 | ||
504 | static int enter_pw(char *pw_buf, size_t buflen, bool new_pw) | 503 | static int enter_pw(char *pw_buf, size_t buflen, bool new_pw) |