Skip to content

Commit 46488e1

Browse files
committed
Making non-static for linux
1 parent c8c70bf commit 46488e1

3 files changed

Lines changed: 21 additions & 6 deletions

File tree

src/libltfs/ltfs.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,10 @@
8181
#define MIN(a, b) ((a) < (b) ? (a) : (b))
8282
#endif
8383

84-
static volatile char *copyright = LTFS_COPYRIGHT_0"\n"LTFS_COPYRIGHT_1"\n"LTFS_COPYRIGHT_2"\n" \
84+
#ifdef mingw_PLATFORM
85+
static
86+
#endif
87+
volatile char *copyright = LTFS_COPYRIGHT_0"\n"LTFS_COPYRIGHT_1"\n"LTFS_COPYRIGHT_2"\n" \
8588
LTFS_COPYRIGHT_3"\n"LTFS_COPYRIGHT_4"\n"LTFS_COPYRIGHT_5"\n";
8689

8790
/** \file

src/utils/ltfsck.c

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,11 @@
6767
#include "libltfs/arch/time_internal.h"
6868
#include "libltfs/kmi.h"
6969

70-
static volatile char *copyright = LTFS_COPYRIGHT_0"\n"LTFS_COPYRIGHT_1"\n"LTFS_COPYRIGHT_2"\n" \
71-
LTFS_COPYRIGHT_3"\n"LTFS_COPYRIGHT_4"\n"LTFS_COPYRIGHT_5"\n";
70+
#ifdef mingw_PLATFORM
71+
static
72+
#endif
73+
volatile char* copyright = LTFS_COPYRIGHT_0"\n"LTFS_COPYRIGHT_1"\n"LTFS_COPYRIGHT_2"\n" \
74+
LTFS_COPYRIGHT_3"\n"LTFS_COPYRIGHT_4"\n"LTFS_COPYRIGHT_5"\n";
7275

7376
#ifdef __APPLE__
7477
#include "libltfs/arch/osx/osx_string.h"
@@ -186,7 +189,10 @@ static struct option long_options[] = {
186189
{0, 0, 0, 0}
187190
};
188191

189-
static void show_usage(char *appname, struct config_file *config, bool full)
192+
#ifdef mingw_PLATFORM
193+
static
194+
#endif
195+
void show_usage(char *appname, struct config_file *config, bool full)
190196
{
191197
ltfsresult(16400I, appname); /* Usage: %s [options] filesys */
192198
fprintf(stderr, "\n");

src/utils/mkltfs.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@
6969
#include "libltfs/kmi.h"
7070
#include "libltfs/tape.h"
7171

72-
static volatile char *copyright = LTFS_COPYRIGHT_0"\n"LTFS_COPYRIGHT_1"\n"LTFS_COPYRIGHT_2"\n" \
72+
#ifdef mingw_PLATFORM
73+
static
74+
#endif
75+
volatile char *copyright = LTFS_COPYRIGHT_0"\n"LTFS_COPYRIGHT_1"\n"LTFS_COPYRIGHT_2"\n" \
7376
LTFS_COPYRIGHT_3"\n"LTFS_COPYRIGHT_4"\n"LTFS_COPYRIGHT_5"\n";
7477

7578
#ifdef __APPLE__
@@ -143,7 +146,10 @@ static struct option long_options[] = {
143146
{0, 0, 0, 0}
144147
};
145148

146-
static void show_usage(char *appname, struct config_file *config, bool full)
149+
#ifdef mingw_PLATFORM
150+
static
151+
#endif
152+
void show_usage(char *appname, struct config_file *config, bool full)
147153
{
148154
struct libltfs_plugin backend;
149155
const char *default_backend;

0 commit comments

Comments
 (0)