diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2014-03-08 15:18:59 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2014-03-08 15:18:59 +0100 |
commit | 1fa62995b4950a974b815fcd0a9a6da14648e5df (patch) | |
tree | 65087148d8d350107bfa2ba6901ffd93266095cb | |
parent | 7086bf4178e9bc99d539f93eb2a9147cd47f08ba (diff) | |
download | gnutls-1fa62995b4950a974b815fcd0a9a6da14648e5df.tar.gz |
removed unused variables.
-rw-r--r-- | src/certtool-cfg.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/certtool-cfg.c b/src/certtool-cfg.c index 7539f35a49..ba711c2d27 100644 --- a/src/certtool-cfg.c +++ b/src/certtool-cfg.c @@ -387,7 +387,7 @@ read_crq_set(gnutls_x509_crq_t crq, const char *input_str, const char *oid) static long read_int_with_default(const char *input_str, long def) { char *endptr; - long l, len; + long l; static char input[128]; fprintf(stderr, input_str, def); @@ -397,8 +397,6 @@ static long read_int_with_default(const char *input_str, long def) if (IS_NEWLINE(input)) return def; - len = strlen(input); - l = strtol(input, &endptr, 0); if (*endptr != '\0' && *endptr != '\r' && *endptr != '\n') { @@ -1039,10 +1037,8 @@ time_t get_expiration_date() { if (batch) { if (cfg.expiration_date == NULL) { - time_t secs, now; + time_t secs; - now = time(NULL); - if (cfg.expiration_days == 0 || cfg.expiration_days < -2) secs = days_to_secs(365); else { |