aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormadmurphy <madmurphy333@gmail.com>2022-02-10 22:20:32 +0000
committermadmurphy <madmurphy333@gmail.com>2022-02-10 22:20:32 +0000
commit82e288bcaa328b4cf39208646c2efb3dac0ccd1f (patch)
treedcf58ffbe484e59e484da65bf454f2a09f64ff3d /src
parent99dcb607e4df229530ddc2967b9512382dc32301 (diff)
downloadgnunet-82e288bcaa328b4cf39208646c2efb3dac0ccd1f.tar.gz
gnunet-82e288bcaa328b4cf39208646c2efb3dac0ccd1f.zip
Use `const` for `GNUNET_FS_file_information_get_filename()`'s only argument
Diffstat (limited to 'src')
-rw-r--r--src/fs/fs_file_information.c2
-rw-r--r--src/include/gnunet_fs_service.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/fs/fs_file_information.c b/src/fs/fs_file_information.c
index 3324abd58..c5faa14d4 100644
--- 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)
57 * @return "filename" field of the structure (can be NULL) 57 * @return "filename" field of the structure (can be NULL)
58 */ 58 */
59const char * 59const char *
60GNUNET_FS_file_information_get_filename (struct GNUNET_FS_FileInformation *s) 60GNUNET_FS_file_information_get_filename (const struct GNUNET_FS_FileInformation *s)
61{ 61{
62 return s->filename; 62 return s->filename;
63} 63}
diff --git a/src/include/gnunet_fs_service.h b/src/include/gnunet_fs_service.h
index 686035e2c..96936bad2 100644
--- 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);
1729 * @return "filename" field of the structure (can be NULL) 1729 * @return "filename" field of the structure (can be NULL)
1730 */ 1730 */
1731const char * 1731const char *
1732GNUNET_FS_file_information_get_filename (struct GNUNET_FS_FileInformation *s); 1732GNUNET_FS_file_information_get_filename (const struct GNUNET_FS_FileInformation *s);
1733 1733
1734 1734
1735/** 1735/**