mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-01-13 01:08:41 -09:00
Fix definitions of global vars confirm_quit and dir_process
They were defined (rather than just declared) in .h files, when they really should be defined in at most a single .c file. Fixes #140.
This commit is contained in:
parent
7875a76bba
commit
ecb71f2550
4 changed files with 3 additions and 2 deletions
|
|
@ -28,7 +28,6 @@
|
||||||
|
|
||||||
#include "global.h"
|
#include "global.h"
|
||||||
|
|
||||||
int confirm_quit;
|
|
||||||
int browse_key(int);
|
int browse_key(int);
|
||||||
void browse_draw(void);
|
void browse_draw(void);
|
||||||
void browse_init(struct dir *);
|
void browse_init(struct dir *);
|
||||||
|
|
|
||||||
|
|
@ -103,7 +103,7 @@ int dir_export_init(const char *fn);
|
||||||
|
|
||||||
|
|
||||||
/* Function set by input code. Returns dir_output.final(). */
|
/* Function set by input code. Returns dir_output.final(). */
|
||||||
int (*dir_process)();
|
extern int (*dir_process)();
|
||||||
|
|
||||||
/* Scanning a live directory */
|
/* Scanning a live directory */
|
||||||
extern int dir_scan_smfs;
|
extern int dir_scan_smfs;
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,7 @@
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
|
|
||||||
|
int (*dir_process)();
|
||||||
char *dir_curpath; /* Full path of the last seen item. */
|
char *dir_curpath; /* Full path of the last seen item. */
|
||||||
struct dir_output dir_output;
|
struct dir_output dir_output;
|
||||||
char *dir_fatalerr; /* Error message on a fatal error. (NULL if there was no fatal error) */
|
char *dir_fatalerr; /* Error message on a fatal error. (NULL if there was no fatal error) */
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,7 @@ long update_delay = 100;
|
||||||
int cachedir_tags = 0;
|
int cachedir_tags = 0;
|
||||||
int extended_info = 0;
|
int extended_info = 0;
|
||||||
int follow_symlinks = 0;
|
int follow_symlinks = 0;
|
||||||
|
int confirm_quit = 0;
|
||||||
|
|
||||||
static int min_rows = 17, min_cols = 60;
|
static int min_rows = 17, min_cols = 60;
|
||||||
static int ncurses_init = 0;
|
static int ncurses_init = 0;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue