diff --git a/parse.c b/parse.c index 372a930..c1c03d6 100644 --- a/parse.c +++ b/parse.c @@ -53,7 +53,7 @@ tuple_find(pkg_tuple_t *head, const char *key) return NULL; } -static char * +char * strdup_parse(pkg_t *pkg, const char *value) { char buf[BUFSIZ]; diff --git a/pkg.h b/pkg.h index 8eaaf5d..e6496bd 100644 --- a/pkg.h +++ b/pkg.h @@ -129,6 +129,7 @@ pkg_t *parse_file(const char *path, FILE *f); char *tuple_find(pkg_tuple_t *head, const char *key); pkg_dependency_t *parse_deplist(pkg_t *pkg, const char *depends); pkg_dependency_t *pkg_dependency_append(pkg_dependency_t *head, pkg_dependency_t *tail); +char *strdup_parse(pkg_t *pkg, const char *value); /* argvsplit.c */ int argv_split(const char *src, int *argc, char ***argv);