[PATCH 3/7] LogVMessageVerb: Fix const mismatch warning
Alan Coopersmith
alan.coopersmith at oracle.com
Tue Nov 1 15:42:18 PDT 2011
"log.c", line 382: warning: assignment type mismatch:
pointer to char "=" pointer to const char
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
os/log.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/os/log.c b/os/log.c
index 9ee32c9..671a01b 100644
--- a/os/log.c
+++ b/os/log.c
@@ -371,7 +371,7 @@ LogVMessageVerb(MessageType type, int verb, const char *format, va_list args)
{
const char *type_str;
char tmpFormat[1024];
- char *new_format;
+ const char *new_format;
type_str = LogMessageTypeVerbString(type, verb);
if (!type_str)
--
1.7.3.2
More information about the xorg-devel
mailing list