From: Eric Bollengier Date: Fri, 25 Sep 2020 13:27:52 +0000 (+0200) Subject: Use const inside the restore_object and plugin_objec structure X-Git-Tag: Release-11.3.2~1019 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81e89b0ecac89869b9ca2dfbb438fd90277d6a6c;p=thirdparty%2Fbacula.git Use const inside the restore_object and plugin_objec structure --- diff --git a/bacula/src/filed/fd_plugins.h b/bacula/src/filed/fd_plugins.h index 60b2cf03a..39e370d7d 100644 --- a/bacula/src/filed/fd_plugins.h +++ b/bacula/src/filed/fd_plugins.h @@ -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; };