[Openvas-commits] r9423 - in trunk/openvas-libraries: . misc omp
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Nov 17 12:16:54 CET 2010
Author: mwiegand
Date: 2010-11-17 12:16:54 +0100 (Wed, 17 Nov 2010)
New Revision: 9423
Modified:
trunk/openvas-libraries/ChangeLog
trunk/openvas-libraries/misc/openvas_server.c
trunk/openvas-libraries/omp/xml.c
Log:
Addressed more 64 bit compiler warnings.
* misc/openvas_server.c (openvas_server_send): Cast argument to int
when using it to specify field precision.
* omp/xml.c (read_entity_and_string): Cast argument to int
when using it to specify field precision.
Modified: trunk/openvas-libraries/ChangeLog
===================================================================
--- trunk/openvas-libraries/ChangeLog 2010-11-17 10:48:02 UTC (rev 9422)
+++ trunk/openvas-libraries/ChangeLog 2010-11-17 11:16:54 UTC (rev 9423)
@@ -1,5 +1,15 @@
2010-11-17 Michael Wiegand <michael.wiegand at greenbone.net>
+ Addressed more 64 bit compiler warnings.
+
+ * misc/openvas_server.c (openvas_server_send): Cast argument to int
+ when using it to specify field precision.
+
+ * omp/xml.c (read_entity_and_string): Cast argument to int
+ when using it to specify field precision.
+
+2010-11-17 Michael Wiegand <michael.wiegand at greenbone.net>
+
Addressed two 64 bit compiler warnings.
* misc/openvas_server.c (openvas_server_send): Use %zu for size_t.
Modified: trunk/openvas-libraries/misc/openvas_server.c
===================================================================
--- trunk/openvas-libraries/misc/openvas_server.c 2010-11-17 10:48:02 UTC (rev 9422)
+++ trunk/openvas-libraries/misc/openvas_server.c 2010-11-17 11:16:54 UTC (rev 9423)
@@ -508,7 +508,7 @@
while (left)
{
ssize_t count;
- g_message (" send %zu from %.*s[...]", left, left < 30 ? left : 30,
+ g_message (" send %zu from %.*s[...]", left, left < 30 ? (int) left : 30,
string);
count = gnutls_record_send (*session, string, left);
if (count < 0)
@@ -541,7 +541,7 @@
return 1;
}
- g_message ("=> %.*s", count, string);
+ g_message ("=> %.*s", (int) count, string);
string += count;
left -= count;
}
Modified: trunk/openvas-libraries/omp/xml.c
===================================================================
--- trunk/openvas-libraries/omp/xml.c 2010-11-17 10:48:02 UTC (rev 9422)
+++ trunk/openvas-libraries/omp/xml.c 2010-11-17 11:16:54 UTC (rev 9423)
@@ -487,7 +487,7 @@
break;
}
- g_message ("<= %.*s\n", count, buffer_start);
+ g_message ("<= %.*s\n", (int) count, buffer_start);
if (string)
g_string_append_len (string, buffer_start, count);
More information about the Openvas-commits
mailing list