diff options
author | Yorhel <git@yorhel.nl> | 2013-05-09 16:24:15 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2013-05-09 16:24:15 +0200 |
commit | 0a4ad63591ac6d768b96f0b798146b5bd01834ec (patch) | |
tree | f163644a934e097d19bb888940da0256b4060b27 | |
parent | bb1145dced2745b1f8f1d7f34fd87e8d8e58bb4f (diff) |
Fix a few compiler warnings
Most of which made sense.
-rw-r--r-- | src/browser.c | 2 | ||||
-rw-r--r-- | src/exclude.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/browser.c b/src/browser.c index 1413b54..32c96ec 100644 --- a/src/browser.c +++ b/src/browser.c @@ -90,7 +90,7 @@ static void browse_draw_info(struct dir *dr) { static void browse_draw_item(struct dir *n, int row) { char ct, dt, *size, gr[11], *items; int i, o, x; - float pc; + float pc = 0.0f; if(n->flags & FF_BSEL) attron(A_REVERSE); diff --git a/src/exclude.c b/src/exclude.c index 2233f99..04324ce 100644 --- a/src/exclude.c +++ b/src/exclude.c @@ -108,10 +108,10 @@ void exclude_clear() { #define CACHEDIR_TAG_SIGNATURE "Signature: 8a477f597d28d172789f06886806bc55" int has_cachedir_tag(const char *name) { - static path_l = 1024; + static int path_l = 1024; static char *path = NULL; int l; - const int signature_l = sizeof CACHEDIR_TAG_SIGNATURE - 1; + const size_t signature_l = sizeof CACHEDIR_TAG_SIGNATURE - 1; char buf[signature_l]; FILE *f; int match = 0; |