Time preferences: remove \r

We are not Windows, we don't need these.
This commit is contained in:
Adrien Destugues
2019-08-31 18:51:02 +02:00
parent 60b52ce0bc
commit 27823b29cd
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -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);
}
+3 -3
View File
@@ -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 {