summaryrefslogtreecommitdiff
path: root/src/user/lib/fwik/io/Term.cpp
diff options
context:
space:
mode:
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);
}