summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@gnu.org>2020-09-13 17:19:32 +0200
committerDaiki Ueno <ueno@gnu.org>2020-09-18 10:12:24 +0200
commit14045b9be6c8b16544c6ea3fa28d3d26f5eefa61 (patch)
tree1d1e1a866c0aa83ea00c1998db35adb814e44997 /src
parent6750b147fefd6c6824669613c0051cff218d6e3c (diff)
downloadgnutls-14045b9be6c8b16544c6ea3fa28d3d26f5eefa61.tar.gz
build: remove dead assignments
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Diffstat (limited to 'src')
-rw-r--r--src/certtool-common.c2
-rw-r--r--src/srptool.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/certtool-common.c b/src/certtool-common.c
index 3af2d08080..31e1c2619f 100644
--- a/src/certtool-common.c
+++ b/src/certtool-common.c
@@ -698,7 +698,7 @@ gnutls_pubkey_t load_public_key_or_import(int mand,
app_exit(1);
}
- if (!privkey || (ret = gnutls_pubkey_import_privkey(pubkey, privkey, 0, 0)) < 0) { /* could not get (e.g. on PKCS #11 */
+ if (!privkey || gnutls_pubkey_import_privkey(pubkey, privkey, 0, 0) < 0) { /* could not get (e.g. on PKCS #11) */
gnutls_pubkey_deinit(pubkey);
pubkey = load_pubkey(0, info);
if (pubkey == NULL && mand) {
diff --git a/src/srptool.c b/src/srptool.c
index 7939f6bfab..7da14afa6c 100644
--- a/src/srptool.c
+++ b/src/srptool.c
@@ -318,7 +318,7 @@ verify_passwd(const char *conffile, const char *tpasswd,
fclose(fp);
- if ((iindex = read_conf_values(&g, &n, line)) < 0) {
+ if (read_conf_values(&g, &n, line) < 0) {
fprintf(stderr, "Cannot parse conf file '%s'\n", conffile);
return -1;
}
@@ -528,7 +528,7 @@ crypt_int(const char *username, const char *passwd, int salt_size,
do { /* find the specified uindex in file */
p = fgets(line, sizeof(line) - 1, fp);
}
- while (p != NULL && (iindex = atoi(p)) != uindex);
+ while (p != NULL && atoi(p) != uindex);
if (p == NULL) {
fprintf(stderr, "Cannot find entry in %s\n", tpasswd_conf);