[Pkg-gnupg-commit] [libassuan] 358/437: Add a version string to the binary.

Eric Dorland eric at moszumanska.debian.org
Fri May 22 05:34:03 UTC 2015


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to branch master
in repository libassuan.

commit b20e8f085cec6465b64a0d17772e663418791d5f
Author: Werner Koch <wk at gnupg.org>
Date:   Wed Mar 30 10:56:29 2011 +0200

    Add a version string to the binary.
---
 src/ChangeLog  |  4 ++++
 src/sysutils.c | 13 ++++++-------
 2 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/src/ChangeLog b/src/ChangeLog
index a27401d..a552201 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
+2011-03-30  Werner Koch  <wk at g10code.com>
+
+	* sysutils.c (_assuan_sysutils_blurb): Add version string.
+
 2011-03-09  Werner Koch  <wk at g10code.com>
 
 	* assuan-handler.c (assuan_register_command): Use my_strcasecmp.
diff --git a/src/sysutils.c b/src/sysutils.c
index 5a1d9de..3a23378 100644
--- a/src/sysutils.c
+++ b/src/sysutils.c
@@ -27,7 +27,7 @@
 #ifdef HAVE_W32_SYSTEM
 # ifdef HAVE_WINSOCK2_H
 #  include <winsock2.h>
-# endif 
+# endif
 # include <windows.h>
 # ifdef HAVE_W32CE_SYSTEM
 # include <winioctl.h>
@@ -42,11 +42,11 @@
 const char *
 _assuan_sysutils_blurb (void)
 {
-  static const char blurb[] = 
+  static const char blurb[] =
     "\n\n"
-    "This is Libassuan - The GnuPG IPC Library\n"
+    "This is Libassuan " PACKAGE_VERSION " - The GnuPG IPC Library\n"
     "Copyright 2000, 2002, 2003, 2004, 2007, 2008, 2009,\n"
-    "          2010 Free Software Foundation, Inc.\n"
+    "          2010, 2011 Free Software Foundation, Inc.\n"
     "\n\n";
   return blurb;
 }
@@ -64,7 +64,7 @@ w32_read_registry (const wchar_t *dir, const wchar_t *name)
   DWORD n, nbytes;
   wchar_t *buffer = NULL;
   char *result = NULL;
-  
+
   if (RegOpenKeyEx (HKEY_LOCAL_MACHINE, dir, 0, KEY_READ, &handle))
     return NULL; /* No need for a RegClose, so return immediately. */
 
@@ -80,7 +80,7 @@ w32_read_registry (const wchar_t *dir, const wchar_t *name)
       buffer = NULL;
       goto out;
     }
-  
+
   n = WideCharToMultiByte (CP_UTF8, 0, buffer, nbytes, NULL, 0, NULL, NULL);
   if (n < 0 || (n+1) <= 0)
     goto out;
@@ -134,4 +134,3 @@ _assuan_getenv (const char *name)
     return NULL;
 }
 #endif /*HAVE_W32CE_SYSTEM*/
-

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/libassuan.git



More information about the Pkg-gnupg-commit mailing list