aboutsummaryrefslogtreecommitdiff
path: root/titan.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2023-08-04 09:53:18 +0000
committerOmar Polo <op@omarpolo.com>2023-08-04 09:53:18 +0000
commit59051566657ab3888ef841cf46cf0588bf57e746 (patch)
tree076ae1ecde985bbbc5f47c8ffba5dbb03416870c /titan.c
parent1b1a6fb7ee90529dbf0697954ed01f76a65f7d65 (diff)
titan: rename parse_err to errstr
Diffstat (limited to 'titan.c')
-rw-r--r--titan.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/titan.c b/titan.c
index e43765a..9b8e463 100644
--- a/titan.c
+++ b/titan.c
@@ -233,7 +233,7 @@ main(int argc, char **argv)
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];
@@ -283,8 +283,8 @@ main(int argc, char **argv)
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,