commit - 1b1a6fb7ee90529dbf0697954ed01f76a65f7d65
commit + 59051566657ab3888ef841cf46cf0588bf57e746
blob - e43765a91ce03ba349b8c0667db5f68d83303623
blob + 9b8e4639d4fc0b92950b8580bee8977779d83039
--- titan.c
+++ titan.c
struct iri iri;
FILE *in;
const char *cert = NULL, *key = NULL, *mime = NULL, *token = NULL;
- const char *parse_err;
+ const char *errstr;
char iribuf[1025];
char reqbuf[1025];
char resbuf[1025];
if (strlcpy(iribuf, argv[0], sizeof(iribuf)) >= sizeof(iribuf))
errx(1, "URL too long");
- if (!parse_iri(iribuf, &iri, &parse_err))
- errx(1, "invalid IRI: %s", parse_err);
+ if (!parse_iri(iribuf, &iri, &errstr))
+ errx(1, "invalid IRI: %s", errstr);
if (token && mime) {
if (asprintf(&path, "%s;size=%lld;token=%s;mime=%s", iri.path,