2010-11-23 Marcus Brinkmann <mb@g10code.com>
authorMarcus Brinkmann <mb@g10code.com>
Tue, 23 Nov 2010 09:46:52 +0000 (09:46 +0000)
committerMarcus Brinkmann <mb@g10code.com>
Tue, 23 Nov 2010 09:46:52 +0000 (09:46 +0000)
* gpgme.h.in (gpgme_conf_arg_new): Make VALUE arg const void *.
* gpgconf.c (_gpgme_conf_arg_new): Likewise.
(gpgme_conf_arg_new): Likewise.
* engine-gpgconf.c (_gpgme_conf_arg_new): Likewise.
(gpgconf_write): Remove debug hack.

src/ChangeLog
src/engine-gpgconf.c
src/gpgconf.c
src/gpgme.h.in

index 37a1e2dcb4248d483d460d336067d0467c5d6672..5664e449a7e185e074e29adda8e98e76e5acd0d0 100644 (file)
@@ -1,3 +1,11 @@
+2010-11-23  Marcus Brinkmann  <mb@g10code.com>
+
+       * gpgme.h.in (gpgme_conf_arg_new): Make VALUE arg const void *.
+       * gpgconf.c (_gpgme_conf_arg_new): Likewise.
+       (gpgme_conf_arg_new): Likewise.
+       * engine-gpgconf.c (_gpgme_conf_arg_new): Likewise.
+       (gpgconf_write): Remove debug hack.
+
 2010-11-19  Marcus Brinkmann  <mb@g10code.com>
 
        * engine-gpgconf.c (_gpgme_conf_opt_change): Support
index 44967f5608a073d09b62aa25cd2f90c0900f5ae6..d08ed03ca4760f43aa038ba7fcaf8028baec3829 100644 (file)
@@ -537,7 +537,7 @@ gpgconf_conf_load (void *engine, gpgme_conf_comp_t *comp_p)
 \f
 gpgme_error_t
 _gpgme_conf_arg_new (gpgme_conf_arg_t *arg_p,
-                    gpgme_conf_type_t type, void *value)
+                    gpgme_conf_type_t type, const void *value)
 {
   gpgme_conf_arg_t arg;
 
@@ -660,7 +660,6 @@ gpgconf_write (void *engine, char *arg1, char *arg2, gpgme_data_t conf)
 
   /* _gpgme_engine_new guarantees that this is not NULL.  */
   argv[0] = gpgconf->file_name;
-  argv[0] = "/nowhere/path-needs-to-be-fixed/gpgconf";
 
   if (_gpgme_io_pipe (rp, 0) < 0)
     return gpg_error_from_syserror ();
index 8fdf68ee336cf09f56aeba6bebfae52d13978e95..3c9d16b554bd536a45d95f0c7c5dbcc69dee4025 100644 (file)
@@ -30,7 +30,7 @@
 #ifdef ENABLE_GPGCONF
 /* engine-gpgconf.c.  */
 gpgme_error_t _gpgme_conf_arg_new (gpgme_conf_arg_t *arg_p,
-                                 gpgme_conf_type_t type, void *value);
+                                 gpgme_conf_type_t type, const void *value);
 void _gpgme_conf_arg_release (gpgme_conf_arg_t arg, gpgme_conf_type_t type);
 gpgme_error_t _gpgme_conf_opt_change (gpgme_conf_opt_t opt, int reset,
                                      gpgme_conf_arg_t arg);
@@ -44,7 +44,7 @@ gpgme_error_t gpgme_op_conf_save (gpgme_ctx_t ctx, gpgme_conf_comp_t comp);
 /* Allocate a new gpgme_conf_arg_t.  */
 gpgme_error_t
 gpgme_conf_arg_new (gpgme_conf_arg_t *arg_p,
-                   gpgme_conf_type_t type, void *value)
+                   gpgme_conf_type_t type, const void *value)
 {
 #ifdef ENABLE_GPGCONF
   return _gpgme_conf_arg_new (arg_p, type, value);
index f84cd465a53b592a43356a1b44e3b2f5c56bcb72..a70ff2adca6fead460340d952ff2f1bd514e82ab 100644 (file)
@@ -1999,7 +1999,7 @@ typedef struct gpgme_conf_comp
    to the string.  Else, it should point to an unsigned or signed
    integer respectively.  */
 gpgme_error_t gpgme_conf_arg_new (gpgme_conf_arg_t *arg_p,
-                                 gpgme_conf_type_t type, void *value);
+                                 gpgme_conf_type_t type, const void *value);
 
 /* This also releases all chained argument structures!  */
 void gpgme_conf_arg_release (gpgme_conf_arg_t arg, gpgme_conf_type_t type);