summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2017-09-23 11:06:24 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2017-09-24 10:29:52 +0000
commitce9a007462ef9e702e7a9d1c00a46e31bfbd3ce9 (patch)
treeaa76944eb36610a87ea711d1787048f96b836f3f /src
parent8fd465434dfec48812ba0e5504a1152b3be5a523 (diff)
downloadgnutls-ce9a007462ef9e702e7a9d1c00a46e31bfbd3ce9.tar.gz
psktool: remove unused variables
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Diffstat (limited to 'src')
-rw-r--r--src/psk.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/psk.c b/src/psk.c
index 1299515445..26d4d14b25 100644
--- a/src/psk.c
+++ b/src/psk.c
@@ -68,7 +68,7 @@ int main(int argc, char **argv)
#endif
unsigned char key[MAX_KEY_SIZE];
char hex_key[MAX_KEY_SIZE * 2 + 1];
- int optct, key_size;
+ int key_size;
gnutls_datum_t dkey;
const char *passwd, *username;
size_t hex_key_size = sizeof(hex_key);
@@ -80,9 +80,7 @@ int main(int argc, char **argv)
umask(066);
- optct = optionProcess(&psktoolOptions, argc, argv);
- argc -= optct;
- argv += optct;
+ optionProcess(&psktoolOptions, argc, argv);
if (!HAVE_OPT(PSKFILE)) {
fprintf(stderr, "You need to specify a PSK key file\n");