aboutsummaryrefslogtreecommitdiff
path: root/src/fs.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2020-02-26 16:09:32 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2020-02-26 16:09:32 -0500
commitd3580f8c0b5c17150382c4b4456e0b1bfa81a50f (patch)
tree5d0fa6911974b2a0541738a7cffc408b09918b8b /src/fs.c
parent639aa9dbf60050bf1bbaeea67df13729239c3a31 (diff)
downloadspmc-d3580f8c0b5c17150382c4b4456e0b1bfa81a50f.tar.gz
Multiple things:
* Add strdup_array() * Begin consolidating spm root information into SPM_Hierarchy * Begin consolidating metadata * Begin trimming repeated code (mostly file reading) * Store information about installed packages under [root]/var/db/records
Diffstat (limited to 'src/fs.c')
-rw-r--r--src/fs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fs.c b/src/fs.c
index ffb9135..6084c1e 100644
--- a/src/fs.c
+++ b/src/fs.c
@@ -244,10 +244,10 @@ char *expandpath(const char *_path) {
* - On UNIX, Win32 paths will be converted UNIX
* - On Win32, UNIX paths will be converted to Win32
*
- * This function is platform dependent.
+ * This function is platform dependent. The string is modified in-place.
*
* @param path a system path
- * @return string (caller is responsible for `free`ing memory)
+ * @return string
*/
char *normpath(const char *path) {
char *result = strdup(path);