commit 82e288bcaa328b4cf39208646c2efb3dac0ccd1f parent 99dcb607e4df229530ddc2967b9512382dc32301 Author: madmurphy <madmurphy333@gmail.com> Date: Thu, 10 Feb 2022 22:20:32 +0000 Use `const` for `GNUNET_FS_file_information_get_filename()`'s only argument Diffstat:
| M | src/fs/fs_file_information.c | | | 2 | +- |
| M | src/include/gnunet_fs_service.h | | | 2 | +- |
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/fs/fs_file_information.c b/src/fs/fs_file_information.c @@ -57,7 +57,7 @@ GNUNET_FS_file_information_get_id (struct GNUNET_FS_FileInformation *s) * @return "filename" field of the structure (can be NULL) */ const char * -GNUNET_FS_file_information_get_filename (struct GNUNET_FS_FileInformation *s) +GNUNET_FS_file_information_get_filename (const struct GNUNET_FS_FileInformation *s) { return s->filename; } diff --git a/src/include/gnunet_fs_service.h b/src/include/gnunet_fs_service.h @@ -1729,7 +1729,7 @@ GNUNET_FS_file_information_get_id (struct GNUNET_FS_FileInformation *s); * @return "filename" field of the structure (can be NULL) */ const char * -GNUNET_FS_file_information_get_filename (struct GNUNET_FS_FileInformation *s); +GNUNET_FS_file_information_get_filename (const struct GNUNET_FS_FileInformation *s); /**