summaryrefslogtreecommitdiffstats
path: root/cert-updater
diff options
context:
space:
mode:
authorDarrell Anderson <[email protected]>2013-05-06 20:10:14 -0500
committerDarrell Anderson <[email protected]>2013-05-06 20:10:14 -0500
commit76d89842dd5f9301a7bcc5bd3cc98d370f11a02f (patch)
treed4fb82f877aee270e5a07ff126f58d94fd2fd81e /cert-updater
parent2cfe02b94d312f73e1cef41225f12af9f3a96ec1 (diff)
downloadkcmldap-76d89842dd5f9301a7bcc5bd3cc98d370f11a02f.tar.gz
kcmldap-76d89842dd5f9301a7bcc5bd3cc98d370f11a02f.zip
Cleanup output clutter.
Diffstat (limited to 'cert-updater')
-rw-r--r--cert-updater/main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/cert-updater/main.cpp b/cert-updater/main.cpp
index 6994626..855324a 100644
--- a/cert-updater/main.cpp
+++ b/cert-updater/main.cpp
@@ -54,7 +54,7 @@ bool received_sighup = false;
void signalHandler(int signum)
{
- printf("[INFO] Got signal %d\n\r", signum);
+ printf("[INFO] Got signal %d\n", signum);
if (signum == SIGHUP) {
received_sighup = true;
}
@@ -85,7 +85,7 @@ int get_certificate_from_server(TQString certificateName, LDAPRealmConfig realmc
ldap_mgr->writeSudoersConfFile(&errorstring);
// Get and install the CA root certificate from LDAP
- printf("[INFO] Updating certificate %s from LDAP\n\r", certificateName.ascii());
+ printf("[INFO] Updating certificate %s from LDAP\n", certificateName.ascii());
if (ldap_mgr->getTDECertificate("publicRootCertificate", certificateName, &errorstring) != 0) {
printf("[ERROR] Unable to obtain root certificate for realm %s: %s", realmcfg.name.upper().ascii(), errorstring.ascii());
retcode = 1;
@@ -162,7 +162,7 @@ int main(int argc, char *argv[])
if (TQFile::exists(certificateName)) {
certExpiry = LDAPManager::getCertificateExpiration(certificateName);
if (certExpiry >= now) {
- printf("[INFO] Certificate %s expires %s\n\r", certificateName.ascii(), certExpiry.toString().ascii()); fflush(stdout);
+ printf("[INFO] Certificate %s expires %s\n", certificateName.ascii(), certExpiry.toString().ascii()); fflush(stdout);
}
if ((certExpiry < now) || ((certExpiry >= now) && (certExpiry < soon))) {
if (get_certificate_from_server(certificateName, realmcfg) != 0) {
@@ -194,7 +194,7 @@ int main(int argc, char *argv[])
prevSecondsToExpiry = (15*60) + (rand()%(5*60));
}
prevSecondsToExpiry = secondsToExpiry;
- printf("[INFO] Will recheck certificates in %d seconds (%d days)\n\r", secondsToExpiry, secondsToExpiry/60/60/24); fflush(stdout);
+ printf("[INFO] Will recheck certificates in %d seconds (%d days)\n", secondsToExpiry, secondsToExpiry/60/60/24); fflush(stdout);
if (sleep(secondsToExpiry) != 0) {
// Signal caught
if (!received_sighup) {