summaryrefslogtreecommitdiffstats
path: root/trace.c
diff options
context:
space:
mode:
authorKarsten Keil2008-09-02 02:02:11 +0200
committerKarsten Keil2008-09-02 02:02:11 +0200
commit08aad9a8c5ad279759e0a870b1dd0d8159ce3444 (patch)
tree90dded99cc57d2149905871ecc6bfa1ece6fe701 /trace.c
parentFix 64bit build (diff)
downloadlcr-08aad9a8c5ad279759e0a870b1dd0d8159ce3444.tar.gz
lcr-08aad9a8c5ad279759e0a870b1dd0d8159ce3444.tar.xz
lcr-08aad9a8c5ad279759e0a870b1dd0d8159ce3444.zip
Fix lot of warnings
Diffstat (limited to 'trace.c')
-rw-r--r--trace.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/trace.c b/trace.c
index 42c7146..63ffb16 100644
--- a/trace.c
+++ b/trace.c
@@ -14,7 +14,7 @@
struct trace trace;
char trace_string[MAX_TRACE_ELEMENTS * 100 + 400];
-static char *spaces[11] = {
+static const char *spaces[11] = {
" ",
" ",
" ",
@@ -32,7 +32,7 @@ static char *spaces[11] = {
* initializes a new trace
* all values will be reset
*/
-void _start_trace(const char *__file, int __line, int port, struct interface *interface, char *caller, char *dialing, int direction, int category, int serial, char *name)
+void _start_trace(const char *__file, int __line, int port, struct interface *interface, const char *caller, const char *dialing, int direction, int category, int serial, const char *name)
{
if (trace.name[0])
PERROR("trace already started (name=%s) in file %s line %d\n", trace.name, __file, __line);
@@ -61,7 +61,7 @@ void _start_trace(const char *__file, int __line, int port, struct interface *in
* if subelement is given, element will also contain a subelement
* if multiple subelements belong to same element, name must be equal for all subelements
*/
-void _add_trace(const char *__file, int __line, char *name, char *sub, const char *fmt, ...)
+void _add_trace(const char *__file, int __line, const char *name, const char *sub, const char *fmt, ...)
{
va_list args;