From f0c047e1f40ee2214fe1f73dc3bdc6b0f6de5d85 Mon Sep 17 00:00:00 2001 From: Fritz Elfert Date: Wed, 5 Feb 2003 07:59:09 +0000 Subject: - Changes for compiling with gcc 3.2 --- lib/log.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'lib/log.h') diff --git a/lib/log.h b/lib/log.h index 9f629e1..01ffe83 100644 --- a/lib/log.h +++ b/lib/log.h @@ -24,7 +24,8 @@ #ifndef _LOG_H_ #define _LOG_H_ -#include +#include + #include /** @@ -51,32 +52,32 @@ * file. If it is omitted or set to -1, logging can be switched on * or off. The initial state is on. */ -class logbuf : public streambuf { +class logbuf : public std::streambuf { public: /** * Constructs a new instance. * - * @param level The log level for this instance. + * @param loglevel The log level for this instance. * see syslog(3) for symbolic names to use. * @param fd An optional file descriptor to use * if switched off. */ - logbuf(int level, int fd = -1); + logbuf(int loglevel, int fd = -1); /** * Switches loggin on or off. * - * @param on The desired state. + * @param newstate The desired state. */ - void setOn(bool on) { _on = on; } + void setOn(bool newstate) { _on = newstate; } /** * Modifies the loglevel of this instance. * - * @param level The new loglevel. + * @param newlevel The new loglevel. */ - void setLevel(int level) { _level = level; } + void setLevel(int newlevel) { _level = newlevel; } /** * Retrieve the current state. -- cgit v1.2.3