summaryrefslogtreecommitdiff
path: root/src/greeting.cc
diff options
context:
space:
mode:
authorJannis M. Hoffmann <jannis@fehcom.de>2023-10-07 22:33:50 +0200
committerJannis M. Hoffmann <jannis@fehcom.de>2023-10-08 11:35:51 +0200
commit1978c49bea5b439d993067c055cec47e70db8fd6 (patch)
tree255caea96a13f95564e6b631be9a4ac55ce33cd9 /src/greeting.cc
parent3b1278f5459514a6d6364f068ff97b8a0432057b (diff)
minor refactoring
Diffstat (limited to 'src/greeting.cc')
-rw-r--r--src/greeting.cc14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/greeting.cc b/src/greeting.cc
index 95e93c0..d96ab96 100644
--- a/src/greeting.cc
+++ b/src/greeting.cc
@@ -1,9 +1,10 @@
-/** --------------------------------------------------------------------
+/**
* @file greeting.cc
* @brief Implementation of the inital greeting.
* @author Andreas Aardal Hanssen
* @date 2002-2005
- * ----------------------------------------------------------------- **/
+ */
+
#include "globals.h"
#include "iodevice.h"
#include "iofactory.h"
@@ -11,7 +12,6 @@
#include <time.h>
-using namespace ::std;
using namespace Binc;
static const unsigned int ISO8601SIZE = 32;
@@ -20,12 +20,10 @@ namespace Binc {
void showGreeting(void);
};
-//------------------------------------------------------------------------
void Binc::showGreeting(void)
{
Session &session = Session::getInstance();
-
- time_t t = time(0);
+ time_t t = time(nullptr);
struct tm *mytm = localtime(&t);
char mytime[ISO8601SIZE];
@@ -34,8 +32,8 @@ void Binc::showGreeting(void)
if (session.hasEnv("VERBOSE_GREETING")) {
bincClient << "* OK Welcome to Binc IMAP " << BINC_VERSION << " " << IMAP_VERSION
- << " by Andreas Aardal Hanssen & Erwin Hoffmann at " << mytime << endl;
+ << " by Andreas Aardal Hanssen & Erwin Hoffmann at " << mytime << std::endl;
} else {
- bincClient << "* OK Welcome to Binc IMAP at " << mytime << endl;
+ bincClient << "* OK Welcome to Binc IMAP at " << mytime << std::endl;
}
}