]> Savannah Git Hosting - gnulib.git/commitdiff
mountlist: Add specification comment in .h file.
authorBruno Haible <bruno@clisp.org>
Fri, 21 Mar 2025 11:22:42 +0000 (12:22 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 21 Mar 2025 11:22:42 +0000 (12:22 +0100)
* lib/mountlist.h (read_file_system_list): Move specification to here...
* lib/mountlist.c (read_file_system_list): ...from here.

ChangeLog
lib/mountlist.c
lib/mountlist.h

index fcb8fc2976d40d376b618eac8c96813c0567a9fe..8111c9df7c1a0f23fcd224a255cfb30b9cb618af 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2025-03-21  Bruno Haible  <bruno@clisp.org>
+
+       mountlist: Add specification comment in .h file.
+       * lib/mountlist.h (read_file_system_list): Move specification to here...
+       * lib/mountlist.c (read_file_system_list): ...from here.
+
 2025-03-21  Bruno Haible  <bruno@clisp.org>
 
        mountlist: Work around an strtoul() misfeature.
index 6cb947daaab7e8f1712a0cd977293d7e5aa95dbb..fae9bb50cb9efab09cb885f3038c9267879eff1a 100644 (file)
@@ -457,12 +457,8 @@ terminate_at_blank (char *str)
     *s = '\0';
   return s;
 }
-#endif
 
-/* Return a list of the currently mounted file systems, or NULL on error.
-   Add each entry to the tail of the list so that they stay in order.
-   If NEED_FS_TYPE is true, ensure that the file system type fields in
-   the returned list are valid.  Otherwise, they might not be.  */
+#endif
 
 struct mount_entry *
 read_file_system_list (bool need_fs_type)
index 5b9da0846c6ae631882257f17be2a84c748a46cd..e8ba1d96f9f91aa15e31ef1669ba315893d6aefd 100644 (file)
@@ -46,8 +46,13 @@ struct mount_entry
   struct mount_entry *me_next;
 };
 
+/* Return a list of the currently mounted file systems, or NULL on error.
+   Add each entry to the tail of the list so that they stay in order.
+   If NEED_FS_TYPE is true, ensure that the file system type fields in
+   the returned list are valid.  Otherwise, they might not be.  */
 struct mount_entry *read_file_system_list (bool need_fs_type)
   _GL_ATTRIBUTE_MALLOC;
+
 void free_mount_entry (struct mount_entry *entry);