From: Eric Bollengier Date: Tue, 12 Oct 2021 09:43:28 +0000 (+0200) Subject: Use const in global names in dird_conf.h X-Git-Tag: Release-11.3.2~345 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66808a43b146c125cd109eac62dc5d4f2f9afe9f;p=thirdparty%2Fbacula.git Use const in global names in dird_conf.h --- diff --git a/bacula/src/dird/dird_conf.h b/bacula/src/dird/dird_conf.h index d434905bb..bbf8a46f5 100644 --- a/bacula/src/dird/dird_conf.h +++ b/bacula/src/dird/dird_conf.h @@ -257,7 +257,7 @@ inline char *CAT::name() const { return hdr.name; } class CLIENT_GLOBALS { public: dlink link; /* double link */ - char *name; /* resource name */ + const 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 */ @@ -320,7 +320,7 @@ inline char *CLIENT::name() const { return hdr.name; } class STORE_GLOBALS { public: dlink link; /* double link */ - char *name; /* resource name */ + const 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 */ @@ -424,7 +424,7 @@ inline void USTORE::set_source(const char *where) class JOB_GLOBALS { public: dlink link; /* double link */ - char *name; /* resource name */ + const char *name; /* resource name */ int32_t NumConcurrentJobs; /* number of concurrent jobs running */ int enabled; /* -1: disabled, 0: disabled, 1: Enabled */ }; @@ -629,7 +629,7 @@ inline char *FILESET::name() const { return hdr.name; } class SCHED_GLOBALS { public: dlink link; /* double link */ - char *name; /* resource name */ + const char *name; /* resource name */ int enabled; /* -1: not set, 0: disabled, 1: Enabled */ };