aboutsummaryrefslogtreecommitdiffstats
path: root/g10/keyedit.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2003-12-17 12:26:56 +0000
committerWerner Koch <[email protected]>2003-12-17 12:26:56 +0000
commit23fa5c97929a1206aaa662e2833eaec629d95c57 (patch)
tree5839ee2a1ea7224a0ae1175f4047e1a16d551da5 /g10/keyedit.c
parent* gettime.c (asctimestamp): Add a note on a non-avoidable gcc warning. (diff)
downloadgnupg-23fa5c97929a1206aaa662e2833eaec629d95c57.tar.gz
gnupg-23fa5c97929a1206aaa662e2833eaec629d95c57.zip
* card-util.c (print_name): Fixed bad format string usage.
(print_isoname): Ditto. * trustdb.c (check_regexp): s/exp/expr/. * keyedit.c (trustsig_prompt): Removed a "> 255" term; it is always false due to the data type. * passphrase.c (agent_get_passphrase): Use xasprintf and avoid non-literal format strings. * tdbio.c (upd_hashtable, drop_from_hashtable, lookup_hashtable): Fixed log_error format string bugs. Kudos to the now working gcc-3.3 -Wformat-nonliteral and Florian Weimer's investigations in gnupg 1.2.3.
Diffstat (limited to 'g10/keyedit.c')
-rw-r--r--g10/keyedit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/keyedit.c b/g10/keyedit.c
index bd41772fd..4da174e3c 100644
--- a/g10/keyedit.c
+++ b/g10/keyedit.c
@@ -298,7 +298,7 @@ sign_mk_attrib( PKT_signature *sig, void *opaque )
}
static void
-trustsig_prompt(byte *trust_value,byte *trust_depth,char **regexp)
+trustsig_prompt(byte *trust_value, byte *trust_depth, char **regexp)
{
char *p;
@@ -344,7 +344,7 @@ trustsig_prompt(byte *trust_value,byte *trust_depth,char **regexp)
cpr_kill_prompt();
*trust_depth=atoi(p);
xfree (p);
- if(*trust_depth<1 || *trust_depth>255)
+ if(*trust_depth < 1 )
*trust_depth=0;
}