aboutsummaryrefslogtreecommitdiffstats
path: root/version_info.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2011-01-16 23:04:33 +0000
committerBill Meier <wmeier@newsguy.com>2011-01-16 23:04:33 +0000
commitba48c5061e82be5cc13da0465cbf14e43e8b71fe (patch)
tree4f1972fb293ad16e94dc3cfa9f10da271a82a151 /version_info.c
parent884d5491b18ad2e616ca4621be016b4aa1fcc34e (diff)
Fix a Windows compiler warning;
Minor whitespace cleanup. svn path=/trunk/; revision=35563
Diffstat (limited to 'version_info.c')
-rw-r--r--version_info.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/version_info.c b/version_info.c
index cc49ca0a7c..1ebe551eca 100644
--- a/version_info.c
+++ b/version_info.c
@@ -117,7 +117,7 @@ end_string(GString *str)
* don't use Portaudio in TShark.
*/
void
-get_compiled_version_info(GString *str, void (*prepend_info)(GString *),
+get_compiled_version_info(GString *str, void (*prepend_info)(GString *),
void (*append_info)(GString *))
{
if (sizeof(str) == 4)
@@ -128,7 +128,7 @@ get_compiled_version_info(GString *str, void (*prepend_info)(GString *),
if (prepend_info)
(*prepend_info)(str);
- /* GLIB */
+ /* GLIB */
g_string_append(str, "with ");
g_string_append_printf(str,
#ifdef GLIB_MAJOR_VERSION
@@ -142,7 +142,7 @@ get_compiled_version_info(GString *str, void (*prepend_info)(GString *),
g_string_append(str, ", ");
get_compiled_pcap_version(str);
- /* LIBZ */
+ /* LIBZ */
g_string_append(str, ", ");
#ifdef HAVE_LIBZ
g_string_append(str, "with libz ");
@@ -155,7 +155,7 @@ get_compiled_version_info(GString *str, void (*prepend_info)(GString *),
g_string_append(str, "without libz");
#endif /* HAVE_LIBZ */
- /* LIBCAP */
+ /* LIBCAP */
g_string_append(str, ", ");
#ifdef HAVE_LIBCAP
g_string_append(str, "with POSIX capabilities");
@@ -236,10 +236,10 @@ get_runtime_version_info(GString *str, void (*additional_info)(GString *))
memset(&system_info, '\0', sizeof system_info);
/* Look for and use the GetNativeSystemInfo() function if available to get the correct processor
* architecture even when running 32-bit Wireshark in WOW64 (x86 emulation on 64-bit Windows) */
- nativesi_func = GetProcAddress(GetModuleHandle(_T("kernel32.dll")), "GetNativeSystemInfo");
+ nativesi_func = (nativesi_func_ptr)GetProcAddress(GetModuleHandle(_T("kernel32.dll")), "GetNativeSystemInfo");
if(nativesi_func)
nativesi_func(&system_info);
- else
+ else
GetSystemInfo(&system_info);
switch (info.dwPlatformId) {
@@ -489,9 +489,9 @@ get_runtime_version_info(GString *str, void (*additional_info)(GString *))
g_string_append(str, ", ");
get_runtime_pcap_version(str);
- /* zlib */
+ /* zlib */
#if defined(HAVE_LIBZ) && !defined(_WIN32)
- g_string_append_printf(str, ", with libz %s", zlibVersion());
+ g_string_append_printf(str, ", with libz %s", zlibVersion());
#endif
/* Additional application-dependent information */