[dia] [warningectomy] incompatible pointer types passing 'guint32 *'
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] [warningectomy] incompatible pointer types passing 'guint32 *'
- Date: Sun, 8 Jun 2014 09:01:44 +0000 (UTC)
commit 6f2b4cb2802c332d8442c396ab60dd5acd95501d
Author: Hans Breuer <hans breuer org>
Date: Fri Jun 6 14:08:09 2014 +0200
[warningectomy] incompatible pointer types passing 'guint32 *'
actually the underlying time was compatible, but using guint where DWORD
is expected was not necessary here at all, windows.h already dragged in.
app/winmain.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/winmain.c b/app/winmain.c
index f396560..b8a7b3b 100644
--- a/app/winmain.c
+++ b/app/winmain.c
@@ -67,7 +67,7 @@ dia_log_func (const gchar *log_domain,
HANDLE file = (HANDLE)data;
const char* level;
static char* last_message = NULL;
- guint32 dwWritten; /* looks like being optional in MSDN, but isn't */
+ DWORD dwWritten; /* looks like being optional in MSDN, but isn't */
/* some small optimization especially for the ugly tweaked font message */
if (last_message && (0 == strcmp (last_message, message)))
@@ -148,7 +148,7 @@ dia_redirect_console (void)
"using Gtk %d.%d.%d (%d)\r\n",
VERSION, i + 1,
gtk_major_version, gtk_minor_version, gtk_micro_version, gtk_binary_age);
- guint32 dwWritten; /* looks like being optional in msdn, but isn't */
+ DWORD dwWritten; /* looks like being optional in msdn, but isn't */
if (!verbose || WriteFile (file, log, strlen(log), &dwWritten, 0))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]