Skip to content

Commit

Permalink
btape: cleanup local variables
Browse files Browse the repository at this point in the history
  • Loading branch information
franku committed May 7, 2020
1 parent fee0dbb commit 71204c0
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions core/src/stored/btape.cc
Expand Up @@ -65,22 +65,18 @@ extern bool ParseSdConfig(const char* configfile, int exit_code);

using namespace storagedaemon;

/* Exported variables */
int quit = 0;
char buf[100000];
int bsize = TAPE_BSIZE;
char VolName[MAX_NAME_LENGTH];
static int quit = 0;
static char buf[100000];

/**
* If you change the format of the state file,
* increment this value
*/
static uint32_t btape_state_level = 2;

Device* dev = NULL;
DeviceControlRecord* dcr;
DeviceResource* device = NULL;
int exit_code = 0;
static Device* dev = nullptr;
static DeviceControlRecord* dcr;
static int exit_code = 0;

#define REC_SIZE 32768

Expand Down

0 comments on commit 71204c0

Please sign in to comment.