class CLIENT_GLOBALS {
public:
dlink link; /* double link */
- const char *name; /* resource name */
+ char *name; /* resource name */
int32_t NumConcurrentJobs; /* number of concurrent jobs running */
char *SetIPaddress; /* address from SetIP command */
int enabled; /* -1: not set, 0 disabled, 1 enabled */
class STORE_GLOBALS {
public:
dlink link; /* double link */
- const char *name; /* resource name */
+ char *name; /* resource name */
int32_t NumConcurrentJobs; /* number of concurrent jobs running */
int32_t NumConcurrentReadJobs; /* number of concurrent read jobs running */
int enabled; /* -1: not set, 0: disabled, 1: enabled */
class JOB_GLOBALS {
public:
dlink link; /* double link */
- const char *name; /* resource name */
+ char *name; /* resource name */
int32_t NumConcurrentJobs; /* number of concurrent jobs running */
int enabled; /* -1: disabled, 0: disabled, 1: Enabled */
};
class SCHED_GLOBALS {
public:
dlink link; /* double link */
- const char *name; /* resource name */
+ char *name; /* resource name */
int enabled; /* -1: not set, 0: disabled, 1: Enabled */
};
/*
Bacula(R) - The Network Backup Solution
- Copyright (C) 2000-2017 Kern Sibbald
+ Copyright (C) 2000-2020 Kern Sibbald
The original author of Bacula is Kern Sibbald, with contributions
from many others, a complete list can be found in the file AUTHORS.
extern uint32_t DLL_IMP_EXP sm_max_buffers;
extern uint32_t DLL_IMP_EXP sm_buffers;
+/* Avoid aggressive GCC optimization */
+extern void *bmemset(void *s, int c, size_t n);
+
#ifdef SMARTALLOC
#undef SMARTALLOC
#define SMARTALLOC SMARTALLOC
-
-/* Avoid aggressive GCC optimization */
-extern void *bmemset(void *s, int c, size_t n);
-
extern void *sm_malloc(const char *fname, int lineno, unsigned int nbytes),
*sm_calloc(const char *fname, int lineno,
unsigned int nelem, unsigned int elsize),
#define sm_new_owner(a, b, c)
#define sm_get_owner(a,b)
#define sm_malloc(f, l, n) malloc(n)
-#define sm_free(f, l, n) free(n)
+#define sm_free(f, l, n) free((void *)n)
#define sm_check(f, l, fl)
#define sm_check_rtn(f, l, fl) 1