From 27823b29cd6f64a6180b76e4b297682c2bbcea9b Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Sat, 31 Aug 2019 18:48:20 +0200 Subject: [PATCH] Time preferences: remove \r We are not Windows, we don't need these. --- src/preferences/time/NetworkTimeView.cpp | 4 ++-- src/preferences/time/Time.cpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/preferences/time/NetworkTimeView.cpp b/src/preferences/time/NetworkTimeView.cpp index be8d497e80..f8854ecc28 100644 --- a/src/preferences/time/NetworkTimeView.cpp +++ b/src/preferences/time/NetworkTimeView.cpp @@ -409,12 +409,12 @@ NetworkTimeView::MessageReceived(BMessage* message) if (message->FindInt32("error code", &errorCode) == B_OK) { snprintf(buffer, sizeof(buffer), B_TRANSLATE("The following error occured " - "while synchronizing:\r\n%s: %s"), + "while synchronizing:\n%s: %s"), errorString, strerror(errorCode)); } else { snprintf(buffer, sizeof(buffer), B_TRANSLATE("The following error occured " - "while synchronizing:\r\n%s"), + "while synchronizing:\n%s"), errorString); } diff --git a/src/preferences/time/Time.cpp b/src/preferences/time/Time.cpp index e5499c11d6..216ea45c9e 100644 --- a/src/preferences/time/Time.cpp +++ b/src/preferences/time/Time.cpp @@ -94,13 +94,13 @@ main(int argc, char** argv) const char* errorString = NULL; int32 errorCode = 0; if (update_time(settings, &errorString, &errorCode) == B_OK) { - printf("Synchronization successful\r\n"); + printf("Synchronization successful\n"); } else if (errorCode != 0) { printf("The following error occured " - "while synchronizing:\r\n%s: %s\r\n", + "while synchronizing:\n%s: %s\n", errorString, strerror(errorCode)); } else { - printf("The following error occured while synchronizing:\r\n%s\r\n", + printf("The following error occured while synchronizing:\n%s\n", errorString); } } else {