gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] branch master updated: Use `const` for `GNUNET_FS_file_informat


From: gnunet
Subject: [gnunet] branch master updated: Use `const` for `GNUNET_FS_file_information_get_filename()`'s only argument
Date: Thu, 10 Feb 2022 23:20:34 +0100

This is an automated email from the git hooks/post-receive script.

madmurphy pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 82e288bca Use `const` for 
`GNUNET_FS_file_information_get_filename()`'s only argument
82e288bca is described below

commit 82e288bcaa328b4cf39208646c2efb3dac0ccd1f
Author: madmurphy <madmurphy333@gmail.com>
AuthorDate: Thu Feb 10 22:20:32 2022 +0000

    Use `const` for `GNUNET_FS_file_information_get_filename()`'s only argument
---
 src/fs/fs_file_information.c    | 2 +-
 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)
  * @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
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);
  * @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);
 
 
 /**

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]