Commented missing implementation at path.
This commit is contained in:
parent
7691fe0dc2
commit
5f22be643c
1 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@
|
||||||
char* ipfs_path_from_cid (struct Cid *c)
|
char* ipfs_path_from_cid (struct Cid *c)
|
||||||
{
|
{
|
||||||
const char prefix[] = "/ipfs/";
|
const char prefix[] = "/ipfs/";
|
||||||
char *rpath, *cidstr = CidString(c);
|
char *rpath, *cidstr;// = CidString(c);
|
||||||
int l;
|
int l;
|
||||||
|
|
||||||
l = sizeof(prefix) + strlen(cidstr);
|
l = sizeof(prefix) + strlen(cidstr);
|
||||||
|
@ -224,7 +224,7 @@ int ipfs_path_parse_from_cid (char *dst, char *txt)
|
||||||
|
|
||||||
if (!txt || txt[0] == '\0') return ErrNoComponents;
|
if (!txt || txt[0] == '\0') return ErrNoComponents;
|
||||||
|
|
||||||
c = cidDecode(txt);
|
//c = cidDecode(txt);
|
||||||
|
|
||||||
if (!c) {
|
if (!c) {
|
||||||
return ErrCidDecode;
|
return ErrCidDecode;
|
||||||
|
|
Loading…
Reference in a new issue