[svn] assuan - r364 - trunk/src

svn author wk cvs at cvs.gnupg.org
Tue Mar 30 20:54:04 CEST 2010


Author: wk
Date: 2010-03-30 20:54:03 +0200 (Tue, 30 Mar 2010)
New Revision: 364

Modified:
   trunk/src/ChangeLog
   trunk/src/assuan-error.c
   trunk/src/gpgcedev.c
Log:
typo fixes and fix w32ce message formatting


Modified: trunk/src/ChangeLog
===================================================================
--- trunk/src/ChangeLog	2010-03-22 12:33:12 UTC (rev 363)
+++ trunk/src/ChangeLog	2010-03-30 18:54:03 UTC (rev 364)
@@ -1,3 +1,7 @@
+2010-03-23  Werner Koch  <wk at g10code.com>
+
+	* assuan-error.c (_assuan_w32_strerror) [W32CE]: Print only the code.
+
 2010-03-22  Werner Koch  <wk at g10code.com>
 
 	* Makefile.am (mkheader, assuan.h): Build header file.

Modified: trunk/src/assuan-error.c
===================================================================
--- trunk/src/assuan-error.c	2010-03-22 12:33:12 UTC (rev 363)
+++ trunk/src/assuan-error.c	2010-03-30 18:54:03 UTC (rev 364)
@@ -53,10 +53,14 @@
 {
   if (ec == -1)
     ec = (int)GetLastError ();
+#ifdef HAVE_W32CE_SYSTEM
+  snprintf (ctx->w32_strerror, sizeof (ctx->w32_strerror) - 1,
+            "ec=%d", (int)GetLastError ());
+#else
   FormatMessage (FORMAT_MESSAGE_FROM_SYSTEM, NULL, ec,
                  MAKELANGID (LANG_NEUTRAL, SUBLANG_DEFAULT),
                  ctx->w32_strerror, sizeof (ctx->w32_strerror) - 1, NULL);
-
+#endif
   return ctx->w32_strerror;
 }
 #endif

Modified: trunk/src/gpgcedev.c
===================================================================
--- trunk/src/gpgcedev.c	2010-03-22 12:33:12 UTC (rev 363)
+++ trunk/src/gpgcedev.c	2010-03-30 18:54:03 UTC (rev 364)
@@ -48,7 +48,7 @@
    The caller sends this IOCTL to the read or the write handle.  The
    required inbuf parameter is address of a variable holding the
    rendezvous id of the pipe's other end.  There is one possible
-   problem with eocdde: If a pipe is kept in non-rendezvous state
+   problem with the code: If a pipe is kept in non-rendezvous state
    until after the rendezvous ids overflow, it is possible that the
    wrong end will be used.  However this is not a realistic scenario.  */
 #define GPGCEDEV_IOCTL_MAKE_PIPE \




More information about the Gnupg-commits mailing list