diff options
author | Werner Koch <wk@gnupg.org> | 2009-12-15 12:03:17 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2009-12-15 12:03:17 +0100 |
commit | 34baa18187d51ff54bd44e46cea8c997046f58ff (patch) | |
tree | 9f67c94a59d6aeff040a2f84a40ad75488dd50ba /g10/keydb.c | |
parent | Fix bug#1162: error creating home directory (diff) | |
download | gnupg2-34baa18187d51ff54bd44e46cea8c997046f58ff.tar.xz gnupg2-34baa18187d51ff54bd44e46cea8c997046f58ff.zip |
Do not use the VMC C reserved word readonly.
Diffstat (limited to 'g10/keydb.c')
-rw-r--r-- | g10/keydb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/g10/keydb.c b/g10/keydb.c index 55727ff5d..41b8c1d33 100644 --- a/g10/keydb.c +++ b/g10/keydb.c @@ -219,12 +219,12 @@ keydb_add_resource (const char *url, int flags, int secret) const char *resname = url; char *filename = NULL; int force = (flags&1); - int readonly = !!(flags&8); + int read_only = !!(flags&8); int rc = 0; KeydbResourceType rt = KEYDB_RESOURCE_TYPE_NONE; void *token; - if (readonly) + if (read_only) force = 0; /* Do we have an URL? @@ -254,7 +254,7 @@ keydb_add_resource (const char *url, int flags, int secret) else filename = xstrdup (resname); - if (!force && !readonly) + if (!force && !read_only) force = secret? !any_secret : !any_public; /* See whether we can determine the filetype. */ @@ -289,7 +289,7 @@ keydb_add_resource (const char *url, int flags, int secret) if (rc) goto leave; - if(keyring_register_filename (filename, secret, readonly, &token)) + if(keyring_register_filename (filename, secret, read_only, &token)) { if (used_resources >= MAX_KEYDB_RESOURCES) rc = G10ERR_RESOURCE_LIMIT; |