[svn] GnuPG - r5350 - trunk/common

svn author marcus cvs at cvs.gnupg.org
Tue Jun 8 20:33:22 CEST 2010


Author: marcus
Date: 2010-06-08 20:33:21 +0200 (Tue, 08 Jun 2010)
New Revision: 5350

Modified:
   trunk/common/ChangeLog
   trunk/common/Makefile.am
   trunk/common/iobuf.c
   trunk/common/sysutils.c
Log:
2010-06-08  Marcus Brinkmann  <marcus at g10code.de>

	* Makefile.am (AM_CFLAGS): Add $(LIBASSUAN_CFLAGS).
	(t_common_ldadd): Add $(LIBASSUAN_LIBS).
	* sysutils.c: Include <assuan.h>.
	(translate_sys2libc_fd_int): Cast to silence gcc warning.
	* iobuf.c: Include <assuan.h>
	(translate_file_handle): Fix syntax error.


Modified: trunk/common/ChangeLog
===================================================================
--- trunk/common/ChangeLog	2010-06-08 16:59:19 UTC (rev 5349)
+++ trunk/common/ChangeLog	2010-06-08 18:33:21 UTC (rev 5350)
@@ -1,3 +1,12 @@
+2010-06-08  Marcus Brinkmann  <marcus at g10code.de>
+
+	* Makefile.am (AM_CFLAGS): Add $(LIBASSUAN_CFLAGS).
+	(t_common_ldadd): Add $(LIBASSUAN_LIBS).
+	* sysutils.c: Include <assuan.h>.
+	(translate_sys2libc_fd_int): Cast to silence gcc warning.
+	* iobuf.c: Include <assuan.h>
+	(translate_file_handle): Fix syntax error.	
+
 2010-06-08  Werner Koch  <wk at g10code.com>
 
 	* iobuf.c (translate_file_handle) [W32CE]: Handle rendezvous ids.

Modified: trunk/common/Makefile.am
===================================================================
--- trunk/common/Makefile.am	2010-06-08 16:59:19 UTC (rev 5349)
+++ trunk/common/Makefile.am	2010-06-08 18:33:21 UTC (rev 5350)
@@ -34,7 +34,7 @@
 
 AM_CPPFLAGS = -I$(top_srcdir)/gl -I$(top_srcdir)/intl
 
-AM_CFLAGS = $(LIBGCRYPT_CFLAGS) $(KSBA_CFLAGS)
+AM_CFLAGS = $(LIBGCRYPT_CFLAGS) $(LIBASSUAN_CFLAGS) $(KSBA_CFLAGS)
 
 include $(top_srcdir)/am/cmacros.am
 
@@ -168,7 +168,7 @@
 
 
 t_common_ldadd = libcommon.a ../gl/libgnu.a \
-                 $(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS) $(LIBINTL) $(LIBICONV)
+                 $(LIBGCRYPT_LIBS) $(LIBASSUAN_LIBS) $(GPG_ERROR_LIBS) $(LIBINTL) $(LIBICONV)
 
 # jnlib tests
 t_stringhelp_SOURCES = t-stringhelp.c $(t_jnlib_src)

Modified: trunk/common/iobuf.c
===================================================================
--- trunk/common/iobuf.c	2010-06-08 16:59:19 UTC (rev 5349)
+++ trunk/common/iobuf.c	2010-06-08 18:33:21 UTC (rev 5350)
@@ -37,6 +37,8 @@
 # include <swis.h>
 #endif /* __riscos__ */
 
+#include <assuan.h>
+
 #include "util.h"
 #include "sysutils.h"
 #include "iobuf.h"
@@ -2366,11 +2368,11 @@
 static int
 translate_file_handle (int fd, int for_write)
 {
-#if defined (HAVE_W32CE_SYSTEM)
+#if defined(HAVE_W32CE_SYSTEM)
   /* This is called only with one of the special filenames.  Under
      W32CE the FD here is not a file descriptor but a rendezvous id,
      thus we need to finish the pipe first.  */
-  fd = _assuan_w32ce_finish_pipe fd, for_write);
+  fd = _assuan_w32ce_finish_pipe (fd, for_write);
 #elif defined(HAVE_W32_SYSTEM)
   {
     int x;

Modified: trunk/common/sysutils.c
===================================================================
--- trunk/common/sysutils.c	2010-06-08 16:59:19 UTC (rev 5349)
+++ trunk/common/sysutils.c	2010-06-08 18:33:21 UTC (rev 5350)
@@ -51,6 +51,8 @@
 #endif
 #include <fcntl.h>
 
+#include <assuan.h>
+
 #include "setenv.h"   /* Gnulib replacement.  */
 
 #include "util.h"
@@ -306,7 +308,7 @@
 translate_sys2libc_fd_int (int fd, int for_write)
 {
 #if HAVE_W32CE_SYSTEM
-  fd = _assuan_w32ce_finish_pipe fd, for_write);
+  fd = (int) _assuan_w32ce_finish_pipe (fd, for_write);
   return translate_sys2libc_fd ((void*)fd, for_write);
 #elif HAVE_W32_SYSTEM
   if (fd <= 2)





More information about the Gnupg-commits mailing list