diff options
author | madmurphy <madmurphy333@gmail.com> | 2022-02-10 22:20:32 +0000 |
---|---|---|
committer | madmurphy <madmurphy333@gmail.com> | 2022-02-10 22:20:32 +0000 |
commit | 82e288bcaa328b4cf39208646c2efb3dac0ccd1f (patch) | |
tree | dcf58ffbe484e59e484da65bf454f2a09f64ff3d | |
parent | 99dcb607e4df229530ddc2967b9512382dc32301 (diff) | |
download | gnunet-82e288bcaa328b4cf39208646c2efb3dac0ccd1f.tar.gz gnunet-82e288bcaa328b4cf39208646c2efb3dac0ccd1f.zip |
Use `const` for `GNUNET_FS_file_information_get_filename()`'s only argument
-rw-r--r-- | src/fs/fs_file_information.c | 2 | ||||
-rw-r--r-- | 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 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 | */ |
59 | const char * | 59 | const char * |
60 | GNUNET_FS_file_information_get_filename (struct GNUNET_FS_FileInformation *s) | 60 | GNUNET_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 | */ |
1731 | const char * | 1731 | const char * |
1732 | GNUNET_FS_file_information_get_filename (struct GNUNET_FS_FileInformation *s); | 1732 | GNUNET_FS_file_information_get_filename (const struct GNUNET_FS_FileInformation *s); |
1733 | 1733 | ||
1734 | 1734 | ||
1735 | /** | 1735 | /** |