apps/networkstatus Fix PVS966
* replace unformatted printf with puts * also add translation for one error message Change-Id: I48f65af633a39c5f7d4ab359ec8b648c9b869fd4 Reviewed-on: https://review.haiku-os.org/c/962 Reviewed-by: Adrien Destugues <[email protected]> Reviewed-by: Jérôme Duval <[email protected]>
This commit is contained in:
@@ -89,8 +89,8 @@ NetworkStatus::ArgvReceived(int32 argc, char** argv)
|
|||||||
|| strcmp(argv[1], "-h") == 0) {
|
|| strcmp(argv[1], "-h") == 0) {
|
||||||
const char* str = B_TRANSLATE("NetworkStatus options:\n"
|
const char* str = B_TRANSLATE("NetworkStatus options:\n"
|
||||||
"\t--deskbar\tautomatically add replicant to Deskbar\n"
|
"\t--deskbar\tautomatically add replicant to Deskbar\n"
|
||||||
"\t--help\t\tprint this info and exit\n");
|
"\t--help\t\tprint this info and exit");
|
||||||
printf(str);
|
puts(str);
|
||||||
fQuitImmediately = true;
|
fQuitImmediately = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -142,7 +142,8 @@ NetworkStatus::ReadyToRun()
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if (!isDeskbarRunning) {
|
if (!isDeskbarRunning) {
|
||||||
printf("Deskbar is not running, giving up.\n");
|
const char* str = B_TRANSLATE("Deskbar is not running, giving up.");
|
||||||
|
puts(str);
|
||||||
Quit();
|
Quit();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user