]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Use const inside the restore_object and plugin_objec structure
authorEric Bollengier <eric@baculasystems.com>
Fri, 25 Sep 2020 13:27:52 +0000 (15:27 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:02:57 +0000 (09:02 +0100)
bacula/src/filed/fd_plugins.h

index 60b2cf03a79722e5ff0c02e3c5f20e9f3241a9f7..39e370d7dd02df5c3c80bffdc7196b5c8eff16e5 100644 (file)
@@ -92,22 +92,22 @@ struct stream_pkt {
 };
 
 struct restore_object {
-   char *object_name;                 /* Object name to create */
-   char *object;                      /* restore object data to save */
-   int32_t object_len;                /* restore object length */
-   int32_t index;                     /* restore object index */
-   int32_t object_compression;        /* set to compression type */
+   const char *object_name;                 /* Object name to create */
+   char *object;                            /* restore object data to save */
+   int32_t object_len;                      /* restore object length */
+   int32_t index;                           /* restore object index */
+   int32_t object_compression;              /* set to compression type */
 };
 
 struct plugin_object {
    uint32_t JobId;
-   char *path;
-   char *filename;
-   char *plugin_name;
-   char *object_type;
-   char *object_name;
-   char *object_source;
-   char *object_uuid;
+   const char *path;
+   const char *filename;
+   const char *plugin_name;
+   const char *object_type;
+   const char *object_name;
+   const char *object_source;
+   const char *object_uuid;
    uint64_t object_size;
 };