summaryrefslogtreecommitdiff
path: root/src/user/lib/fwik/io/Term.cpp
diff options
context:
space:
mode:
authorAlex AUVOLAT <alexis211@gmail.com>2012-05-19 15:56:25 +0200
committerAlex AUVOLAT <alexis211@gmail.com>2012-05-19 15:56:25 +0200
commit8e07c1db6ba4bedd0f8fe537a6fb0ca80e5d25f4 (patch)
tree08df626a28c290f5cde43424dd62dd43fc441a35 /src/user/lib/fwik/io/Term.cpp
parent0d2f7645c3fb45d83497faf2a4b6fff8c3f175d1 (diff)
downloadTCE-8e07c1db6ba4bedd0f8fe537a6fb0ca80e5d25f4.tar.gz
TCE-8e07c1db6ba4bedd0f8fe537a6fb0ca80e5d25f4.zip
Better sprintf, vsprintf, String::sprintf, etc.
Diffstat (limited to 'src/user/lib/fwik/io/Term.cpp')
-rw-r--r--src/user/lib/fwik/io/Term.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/user/lib/fwik/io/Term.cpp b/src/user/lib/fwik/io/Term.cpp
index f7f28ec..1540b9a 100644
--- a/src/user/lib/fwik/io/Term.cpp
+++ b/src/user/lib/fwik/io/Term.cpp
@@ -8,7 +8,7 @@ Term::Term(FILE f) : Node(f) {
_init();
}
-Term::Term(char* filename, int mode) : Node(filename, mode) {
+Term::Term(const char* filename, int mode) : Node(filename, mode) {
_init();
}
@@ -27,18 +27,18 @@ Term::~Term() {
//TODO : free readline history
}
-void Term::print(char *s) {
+void Term::print(const char *s) {
libc::fprint(fd, s);
}
-void Term::printf(char* fmt, ...) {
+void Term::printf(const char* fmt, ...) {
va_list ap;
va_start(ap, fmt);
libc::vfprintf(fd, fmt, ap);
va_end(ap);
}
-void Term::vprintf(char* fmt, va_list ap) {
+void Term::vprintf(const char* fmt, va_list ap) {
libc::vfprintf(fd, fmt, ap);
}