mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-01-13 01:08:41 -09:00
Fix a few compiler warnings
Most of which made sense.
This commit is contained in:
parent
bb1145dced
commit
0a4ad63591
2 changed files with 3 additions and 3 deletions
|
|
@ -90,7 +90,7 @@ static void browse_draw_info(struct dir *dr) {
|
||||||
static void browse_draw_item(struct dir *n, int row) {
|
static void browse_draw_item(struct dir *n, int row) {
|
||||||
char ct, dt, *size, gr[11], *items;
|
char ct, dt, *size, gr[11], *items;
|
||||||
int i, o, x;
|
int i, o, x;
|
||||||
float pc;
|
float pc = 0.0f;
|
||||||
|
|
||||||
if(n->flags & FF_BSEL)
|
if(n->flags & FF_BSEL)
|
||||||
attron(A_REVERSE);
|
attron(A_REVERSE);
|
||||||
|
|
|
||||||
|
|
@ -108,10 +108,10 @@ void exclude_clear() {
|
||||||
#define CACHEDIR_TAG_SIGNATURE "Signature: 8a477f597d28d172789f06886806bc55"
|
#define CACHEDIR_TAG_SIGNATURE "Signature: 8a477f597d28d172789f06886806bc55"
|
||||||
|
|
||||||
int has_cachedir_tag(const char *name) {
|
int has_cachedir_tag(const char *name) {
|
||||||
static path_l = 1024;
|
static int path_l = 1024;
|
||||||
static char *path = NULL;
|
static char *path = NULL;
|
||||||
int l;
|
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];
|
char buf[signature_l];
|
||||||
FILE *f;
|
FILE *f;
|
||||||
int match = 0;
|
int match = 0;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue