diff options
author | Werner Koch <[email protected]> | 2016-09-13 18:57:15 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2016-09-13 18:57:15 +0000 |
commit | 686a065f639ef006e33c164e282d787bcd169754 (patch) | |
tree | 6f9cff1a74c6015a0e725e1af0f2e6156fa4b65a /src/dirinfo.c | |
parent | core: Fix condition-always-true warning in trace macro. (diff) | |
download | gpgme-686a065f639ef006e33c164e282d787bcd169754.tar.gz gpgme-686a065f639ef006e33c164e282d787bcd169754.zip |
core: Cast away the common const problem with spawn and argv.
* src/dirinfo.c (read_gpgconf_dirs): Use a cast to assignd to ARGV.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'src/dirinfo.c')
-rw-r--r-- | src/dirinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dirinfo.c b/src/dirinfo.c index ecb1c0ca..b24a8a0f 100644 --- a/src/dirinfo.c +++ b/src/dirinfo.c @@ -193,7 +193,7 @@ read_gpgconf_dirs (const char *pgmname, int components) char *mark = NULL; argv[0] = (char *)pgmname; - argv[1] = components? "--list-components" : "--list-dirs"; + argv[1] = (char*)(components? "--list-components" : "--list-dirs"); argv[2] = NULL; if (_gpgme_io_pipe (rp, 1) < 0) |