summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-10-29 11:19:44 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-11-23 12:15:06 -0800
commitf3cb512dc4daaeed389bb4740e21b6e2330e01e1 (patch)
treedc3a9b0bf17bec9b1deb799f868f4fcbf56cd940
parent3d2d88029b29d6e1c53220ad275ba8ba2dedd89e (diff)
LogVMessageVerb: Fix const mismatch warning
"log.c", line 382: warning: assignment type mismatch: pointer to char "=" pointer to const char Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
-rw-r--r--os/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/log.c b/os/log.c
index 9ee32c93d..671a01bb6 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)