aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-08-11 16:24:15 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-08-11 16:24:15 +0200
commit278d3089fa804d90c55b77d64248dda20feae732 (patch)
treed53d609442d213877e0df2bbf41b08a1fb91a382 /main.c
parent00058af875bf79570c115ee32d3eb6181eb45659 (diff)
Remove unused variable
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/main.c b/main.c
index bc0ac4a..3bc202f 100644
--- a/main.c
+++ b/main.c
@@ -139,14 +139,13 @@ main(int argc, char *argv[])
bool
uri_parse(struct totp_config *conf, const char *uri_raw)
{
- int n;
bool reject;
size_t len;
UriUriA uri;
UriQueryListA *qs;
const char *epos;
- if ((n = uriParseSingleUriA(&uri, uri_raw, &epos)) != URI_SUCCESS) {
+ if (uriParseSingleUriA(&uri, uri_raw, &epos) != URI_SUCCESS) {
len = epos - uri_raw + 24 + strlen(__progname);
WARNX_AND_RET("Failed to parse URI ā€˜%sā€™\n"
"%*c Error detected here",