summaryrefslogtreecommitdiff
path: root/common.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-09-30 20:19:44 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-09-30 20:19:44 -0700
commitaf2cc5bc2e13a61e6ab3d495d3edb34d94a42964 (patch)
treef3cf6b505190ac41b4c683ef74e1b9e6ff5e8c6c /common.c
parent7fbf2ff3c925a0cc55024bc8350ad9e9bf8d1e47 (diff)
downloadxscope-af2cc5bc2e13a61e6ab3d495d3edb34d94a42964.tar.gz
Add const attributes to clear gcc -Wwrite-strings warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'common.c')
-rw-r--r--common.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/common.c b/common.c
index 3779b13..a0d240b 100644
--- a/common.c
+++ b/common.c
@@ -58,19 +58,19 @@
/* ********************************************** */
void
-enterprocedure (char *s)
+enterprocedure (const char *s)
{
debug(2,(stderr, "-> %s\n", s));
}
void
-warn (char *s)
+warn (const char *s)
{
fprintf(stderr, "####### %s\n", s);
}
void
-panic (char *s)
+panic (const char *s)
{
fprintf(stderr, "%s\n", s);
exit(1);