summaryrefslogtreecommitdiffstats
path: root/runtime/io.c
diff options
context:
space:
mode:
authorhunt <hunt>2006-11-02 18:21:53 +0000
committerhunt <hunt>2006-11-02 18:21:53 +0000
commit202e1828643725d7bebef76c48cbaa28c463cee3 (patch)
treec3a49bb5393be317981d363b2cc9818ff5668ed2 /runtime/io.c
parentea3f75ae405de85514beb3e560abdef6b61c4bbe (diff)
downloadsystemtap-steved-202e1828643725d7bebef76c48cbaa28c463cee3.tar.gz
systemtap-steved-202e1828643725d7bebef76c48cbaa28c463cee3.tar.xz
systemtap-steved-202e1828643725d7bebef76c48cbaa28c463cee3.zip
2006-11-02 Martin Hunt <hunt@redhat.com>
* io.c (_stp_vlog, _stp_dbug): Make first parameter const. * runtime.h: Update prototype for _stp_dbug.
Diffstat (limited to 'runtime/io.c')
-rw-r--r--runtime/io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/io.c b/runtime/io.c
index cee9acf1..5ef88957 100644
--- a/runtime/io.c
+++ b/runtime/io.c
@@ -32,7 +32,7 @@ static char _stp_lbuf[NR_CPUS][STP_LOG_BUF_LEN + 1];
enum code { INFO=0, WARN, ERROR, DBUG };
-static void _stp_vlog (enum code type, char *func, int line, const char *fmt, va_list args)
+static void _stp_vlog (enum code type, const char *func, int line, const char *fmt, va_list args)
{
int num;
char *buf = &_stp_lbuf[get_cpu()][0];
@@ -150,7 +150,7 @@ void _stp_softerror (const char *fmt, ...)
}
-static void _stp_dbug (char *func, int line, const char *fmt, ...)
+static void _stp_dbug (const char *func, int line, const char *fmt, ...)
{
va_list args;
va_start(args, fmt);