Skip to content
This repository was archived by the owner on Oct 17, 2024. It is now read-only.

Commit

Permalink
Define global variables globally
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmark committed Sep 14, 2024
1 parent 3d2f63f commit 493d342
Show file tree
Hide file tree
Showing 14 changed files with 33 additions and 28 deletions.
6 changes: 3 additions & 3 deletions test/T2_spectest.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
#include "test.h"
#include <dlfcn.h>

int Verbose = 0;
int Quirk = 0;
int Interactive = 0;
// int Verbose = 0;
// int Quirk = 0;
// int Interactive = 0;

u_int16_t VolID;
static DSI *dsi;
Expand Down
4 changes: 2 additions & 2 deletions test/afp_ls.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
#include "specs.h"
#include <time.h>

int Verbose = 0;
int Quirk = 0;
// int Verbose = 0;
// int Quirk = 0;
char *Dir = "";

u_int16_t VolID;
Expand Down
2 changes: 1 addition & 1 deletion test/afparg.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ FN_N(FPGetACL)
};

/* Some globals */
int Verbose = 0;
// int Verbose = 0;
int ExitCode = 0;
uint16_t VolID;
static DSI *dsi;
Expand Down
6 changes: 5 additions & 1 deletion test/afpcli.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
#include "afpclient.h"
#include "test.h"

int Throttle;
int Convert = 1;
extern int Quiet;
int Interactive = 0;
int Quiet = 1;
int Quirk = 0;
int Verbose = 0;

#define UNICODE(a) (a->afp_version >= 30)

Expand Down
2 changes: 1 addition & 1 deletion test/afpcmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <stdint.h>


int Quiet;
// int Quiet;

/* -------------------------------------------*/
static char *dsi_command2str[] =
Expand Down
4 changes: 2 additions & 2 deletions test/encoding_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
#include "specs.h"
#include <time.h>

int Verbose = 0;
int Quirk = 0;
// int Verbose = 0;
// int Quirk = 0;
char *Dir = "";
char *Path;

Expand Down
4 changes: 2 additions & 2 deletions test/fail_spectest.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
#include "specs.h"
#include <dlfcn.h>

int Verbose = 0;
int Quirk = 0;
// int Verbose = 0;
// int Quirk = 0;

u_int16_t VolID;
static DSI *dsi;
Expand Down
4 changes: 2 additions & 2 deletions test/lantest.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@

extern int Throttle;

int Verbose = 0;
int Quirk = 0;
// int Verbose = 0;
// int Quirk = 0;
CONN *Conn;
int ExitCode = 0;
char Data[300000] = "";
Expand Down
4 changes: 2 additions & 2 deletions test/logintest.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
*/
#include "specs.h"

int Verbose = 0;
int Quirk = 0;
// int Verbose = 0;
// int Quirk = 0;

u_int16_t VolID;

Expand Down
4 changes: 2 additions & 2 deletions test/rotest.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
*/
#include "specs.h"

int Verbose = 0;
int Quirk = 0;
// int Verbose = 0;
// int Quirk = 0;

u_int16_t VolID;
static DSI *dsi;
Expand Down
6 changes: 3 additions & 3 deletions test/sleeptest.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#include "specs.h"
#include <dlfcn.h>

int Verbose = 0;
int Interactive = 0;
int Quirk = 0;
// int Verbose = 0;
// int Interactive = 0;
// int Quirk = 0;

u_int16_t VolID;
static DSI *dsi;
Expand Down
8 changes: 4 additions & 4 deletions test/spectest.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
#include "specs.h"
#include <dlfcn.h>

int Verbose = 0;
int Interactive = 0;
int Quirk = 0;
int Quiet = 1;
// int Verbose = 0;
// int Interactive = 0;
// int Quirk = 0;
// int Quiet = 1;

u_int16_t VolID;
static DSI *dsi;
Expand Down
6 changes: 3 additions & 3 deletions test/speedtest.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
#endif
#endif

int Verbose = 0;
int Interactive = 0;
int Quirk = 0;
// int Verbose = 0;
// int Interactive = 0;
// int Quirk = 0;

u_int16_t VolID;
u_int16_t VolID2;
Expand Down
1 change: 1 addition & 0 deletions test/test.h
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,4 @@ extern int Quiet;
extern int Locking;
extern int Loglevel;
extern int Color;
extern int Interactive;

0 comments on commit 493d342

Please sign in to comment.