diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2017-09-23 11:06:24 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2017-09-24 10:29:52 +0000 |
commit | ce9a007462ef9e702e7a9d1c00a46e31bfbd3ce9 (patch) | |
tree | aa76944eb36610a87ea711d1787048f96b836f3f /src | |
parent | 8fd465434dfec48812ba0e5504a1152b3be5a523 (diff) | |
download | gnutls-ce9a007462ef9e702e7a9d1c00a46e31bfbd3ce9.tar.gz |
psktool: remove unused variables
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/psk.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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"); |