summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2022-09-23 10:54:30 +0200
committerMarcus Meissner <marcus@jet.franken.de>2022-09-23 10:54:30 +0200
commit08224127a6b270bf75fb4d025517e0bb9c1ec485 (patch)
tree23ae67180cfc41f92061809c2f1579556d1e445d
parent7b3954ab2e79c80b894d3ad11a6489971ad5a803 (diff)
downloadlibmtp-08224127a6b270bf75fb4d025517e0bb9c1ec485.tar.gz
fix comment above sort_storage_bysort_storage_by
-rw-r--r--src/libmtp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libmtp.c b/src/libmtp.c
index 02963cc..07d4b68 100644
--- a/src/libmtp.c
+++ b/src/libmtp.c
@@ -2956,10 +2956,9 @@ static void free_storage_list(LIBMTP_mtpdevice_t *device)
}
/**
- * This function traverses a devices storage list freeing up the
- * strings and the structs.
+ * This function sorts a devices storage list according to the criteria passed.
* @param device a pointer to the MTP device to free the storage
- * list for.
+ * @param sortby LIBMTP_STORAGE_SORTBY_* flag to sort the list for (either by free space or maximum space)
*/
static int sort_storage_by(LIBMTP_mtpdevice_t *device,int const sortby)
{