refactor: Decided to not return char** in function that creates the package description after all, now returns char*.
The method I was trying started to irk me when I thought of creating a test unit for it. Also fixed some other issues I found in the package_to_description function (SHA256SUM section still missing).
This commit is contained in:
parent
31fc4e2989
commit
3d69c8edeb
2 changed files with 49 additions and 27 deletions
|
|
@ -21,6 +21,6 @@ typedef struct pkg {
|
|||
|
||||
Pkg *package_read_archive(const char *pkg_path);
|
||||
void package_free(Pkg ** ptp);
|
||||
char **package_to_description(Pkg *pkg);
|
||||
char *package_to_description(Pkg *pkg);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Reference in a new issue