[svn] gpgme - r1460 - trunk/src
svn author marcus
cvs at cvs.gnupg.org
Mon Apr 19 18:59:24 CEST 2010
Author: marcus
Date: 2010-04-19 18:59:23 +0200 (Mon, 19 Apr 2010)
New Revision: 1460
Modified:
trunk/src/ChangeLog
trunk/src/assuan-support.c
trunk/src/engine-g13.c
trunk/src/key.c
trunk/src/ops.h
trunk/src/posix-util.c
trunk/src/vfs-create.c
trunk/src/vfs-mount.c
Log:
2010-04-19 Marcus Brinkmann <marcus at g10code.de>
* assuan-support.c (my_spawn): Cast to avoid warning.
* engine-g13.c (g13_new): Make ARGV array of pointer to const
char.
(g13_assuan_simple_command) [!USE_DESCRIPTOR_FUNCTION]: Don't define.
* ops.h (_gpgme_key_append_name): Same in prototype.
* key.c (_gpgme_key_append_name): Make SRC argument pointer to
const char.
* posix-util.c (_gpgme_get_uiserver_socket_path): Make HOMEDIR
const.
* vfs-mount.c (gpgme_op_vfs_transact_start): Never define this
potentially useful but currently unused function.
* vfs-create.c (gpgme_op_vfs_transact_start): Likewise.
Modified: trunk/src/ChangeLog
===================================================================
--- trunk/src/ChangeLog 2010-04-16 14:08:41 UTC (rev 1459)
+++ trunk/src/ChangeLog 2010-04-19 16:59:23 UTC (rev 1460)
@@ -1,3 +1,18 @@
+2010-04-19 Marcus Brinkmann <marcus at g10code.de>
+
+ * assuan-support.c (my_spawn): Cast to avoid warning.
+ * engine-g13.c (g13_new): Make ARGV array of pointer to const
+ char.
+ (g13_assuan_simple_command) [!USE_DESCRIPTOR_FUNCTION]: Don't define.
+ * ops.h (_gpgme_key_append_name): Same in prototype.
+ * key.c (_gpgme_key_append_name): Make SRC argument pointer to
+ const char.
+ * posix-util.c (_gpgme_get_uiserver_socket_path): Make HOMEDIR
+ const.
+ * vfs-mount.c (gpgme_op_vfs_transact_start): Never define this
+ potentially useful but currently unused function.
+ * vfs-create.c (gpgme_op_vfs_transact_start): Likewise.
+
2010-04-16 Werner Koch <wk at g10code.com>
* w32-io.c (is_socket): New.
Modified: trunk/src/assuan-support.c
===================================================================
--- trunk/src/assuan-support.c 2010-04-16 14:08:41 UTC (rev 1459)
+++ trunk/src/assuan-support.c 2010-04-19 16:59:23 UTC (rev 1460)
@@ -158,8 +158,8 @@
fd_items[i].fd = -1;
fd_items[i].dup_to = -1;
- err = _gpgme_io_spawn (name, argv, IOSPAWN_FLAG_NOCLOSE, fd_items,
- atfork, atforkvalue, r_pid);
+ err = _gpgme_io_spawn (name, (char*const*)argv, IOSPAWN_FLAG_NOCLOSE,
+ fd_items, atfork, atforkvalue, r_pid);
if (! err)
{
i = 0;
Modified: trunk/src/engine-g13.c
===================================================================
--- trunk/src/engine-g13.c 2010-04-16 14:08:41 UTC (rev 1459)
+++ trunk/src/engine-g13.c 2010-04-19 16:59:23 UTC (rev 1460)
@@ -211,7 +211,7 @@
gpgme_error_t err = 0;
engine_g13_t g13;
int argc;
- char *argv[5];
+ const char *argv[5];
char *dft_display = NULL;
char dft_ttyname[64];
char *dft_ttytype = NULL;
@@ -392,6 +392,7 @@
}
+#if USE_DESCRIPTOR_PASSING
static gpgme_error_t
g13_assuan_simple_command (assuan_context_t ctx, char *cmd,
engine_status_handler_t status_fnc,
@@ -442,6 +443,7 @@
return err;
}
+#endif
static gpgme_error_t
Modified: trunk/src/key.c
===================================================================
--- trunk/src/key.c 2010-04-16 14:08:41 UTC (rev 1459)
+++ trunk/src/key.c 2010-04-19 16:59:23 UTC (rev 1460)
@@ -202,7 +202,7 @@
/* Take a name from the --with-colon listing, remove certain escape
sequences sequences and put it into the list of UIDs. */
gpgme_error_t
-_gpgme_key_append_name (gpgme_key_t key, char *src, int convert)
+_gpgme_key_append_name (gpgme_key_t key, const char *src, int convert)
{
gpgme_user_id_t uid;
char *dst;
Modified: trunk/src/ops.h
===================================================================
--- trunk/src/ops.h 2010-04-16 14:08:41 UTC (rev 1459)
+++ trunk/src/ops.h 2010-04-19 16:59:23 UTC (rev 1460)
@@ -128,7 +128,7 @@
gpgme_error_t _gpgme_key_new (gpgme_key_t *r_key);
gpgme_error_t _gpgme_key_add_subkey (gpgme_key_t key,
gpgme_subkey_t *r_subkey);
-gpgme_error_t _gpgme_key_append_name (gpgme_key_t key, char *src, int convert);
+gpgme_error_t _gpgme_key_append_name (gpgme_key_t key, const char *src, int convert);
gpgme_key_sig_t _gpgme_key_add_sig (gpgme_key_t key, char *src);
Modified: trunk/src/posix-util.c
===================================================================
--- trunk/src/posix-util.c 2010-04-16 14:08:41 UTC (rev 1459)
+++ trunk/src/posix-util.c 2010-04-19 16:59:23 UTC (rev 1460)
@@ -74,7 +74,7 @@
_gpgme_get_uiserver_socket_path (void)
{
static char *socket_path;
- char *homedir;
+ const char *homedir;
const char name[] = "S.uiserver";
if (socket_path)
Modified: trunk/src/vfs-create.c
===================================================================
--- trunk/src/vfs-create.c 2010-04-16 14:08:41 UTC (rev 1459)
+++ trunk/src/vfs-create.c 2010-04-19 16:59:23 UTC (rev 1460)
@@ -58,7 +58,7 @@
}
-
+#if 0
/* XXXX. This is the asynchronous variant. */
static gpgme_error_t
gpgme_op_vfs_transact_start (gpgme_ctx_t ctx,
@@ -73,6 +73,7 @@
return vfs_start (ctx, 0, command, data_cb, data_cb_value,
inq_cb, inq_cb_value, status_cb, status_cb_value);
}
+#endif
/* XXXX. This is the synchronous variant. */
Modified: trunk/src/vfs-mount.c
===================================================================
--- trunk/src/vfs-mount.c 2010-04-16 14:08:41 UTC (rev 1459)
+++ trunk/src/vfs-mount.c 2010-04-19 16:59:23 UTC (rev 1460)
@@ -116,6 +116,7 @@
+#if 0
/* XXXX. This is the asynchronous variant. */
static gpgme_error_t
gpgme_op_vfs_transact_start (gpgme_ctx_t ctx,
@@ -130,6 +131,7 @@
return vfs_start (ctx, 0, command, data_cb, data_cb_value,
inq_cb, inq_cb_value, status_cb, status_cb_value);
}
+#endif
/* XXXX. This is the synchronous variant. */
More information about the Gnupg-commits
mailing list