Cleanup: fix a couple of styleguide violations.

This commit is contained in:
Oliver Tappe 2012-02-23 14:31:57 +01:00
parent 7f837074a6
commit cefa27bf82

View File

@ -30,7 +30,7 @@ const char* kAppSignature = "application/x-vnd.Haiku-Time";
TimeApplication::TimeApplication()
:
:
BApplication(kAppSignature),
fWindow(NULL)
{
@ -68,25 +68,25 @@ main(int argc, char** argv)
if (argc > 1) {
if (strcmp(argv[1], "--update") != 0)
return 0;
Settings settings;
if (!settings.GetSynchronizeAtBoot())
return 0;
const char* errorString = NULL;
int32 errorCode = 0;
if (update_time(settings, &errorString, &errorCode) == B_OK)
if (update_time(settings, &errorString, &errorCode) == B_OK) {
printf("Synchronization successful\r\n");
else if (errorCode != 0)
} else if (errorCode != 0) {
printf("The following error occured "
"while synchronizing:\r\n%s: %s\r\n",
errorString, strerror(errorCode));
else
} else {
printf("The following error occured "
"while synchronizing:\r\n%s\r\n",
errorString);
}
else {
}
} else {
TimeApplication app;
setuid(0);
app.Run();