aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2011-03-30 08:56:29 +0000
committerWerner Koch <[email protected]>2011-03-30 08:56:29 +0000
commitb20e8f085cec6465b64a0d17772e663418791d5f (patch)
treef3920b2ba572a9b0c207d1ef4ebecb5521d1fb56
parentInclude sys/select.h in a test utility. (diff)
downloadlibassuan-b20e8f085cec6465b64a0d17772e663418791d5f.tar.gz
libassuan-b20e8f085cec6465b64a0d17772e663418791d5f.zip
Add a version string to the binary.
-rw-r--r--src/ChangeLog4
-rw-r--r--src/sysutils.c13
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 <[email protected]>
+
+ * sysutils.c (_assuan_sysutils_blurb): Add version string.
+
2011-03-09 Werner Koch <[email protected]>
* 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*/
-