From 686a065f639ef006e33c164e282d787bcd169754 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 13 Sep 2016 20:57:15 +0200 Subject: 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 --- src/dirinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dirinfo.c') 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) -- cgit v1.2.3