bin/urlwrapper: Fix -Wmisleading-indentation

Fix misleadingly indented printf() at line 142.

Change-Id: I498d171db6a09425901a13d52a8b2eca1413a068
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3342
Reviewed-by: Jérôme Duval <[email protected]>
This commit is contained in:
Murai Takashi
2020-10-23 07:09:20 +00:00
committed by Jérôme Duval
parent 1363e29b52
commit 2613144749
+4 -3
View File
@@ -57,8 +57,8 @@ UrlWrapper::_Warn(const char* url)
message << "\n" << url << "\n\n"; message << "\n" << url << "\n\n";
message << "This type of URL has a potential security risk.\n"; message << "This type of URL has a potential security risk.\n";
message << "Proceed anyway?"; message << "Proceed anyway?";
BAlert* alert = new BAlert("Warning", message.String(), "Proceed", "Stop", NULL, BAlert* alert = new BAlert("Warning", message.String(), "Proceed", "Stop",
B_WIDTH_AS_USUAL, B_WARNING_ALERT); NULL, B_WIDTH_AS_USUAL, B_WARNING_ALERT);
alert->SetShortcut(1, B_ESCAPE); alert->SetShortcut(1, B_ESCAPE);
int32 button; int32 button;
button = alert->Go(); button = alert->Go();
@@ -141,7 +141,8 @@ UrlWrapper::RefsReceived(BMessage* msg)
continue; continue;
printf("webloc\n"); printf("webloc\n");
if (size > (sizeof(bplist_match) + 2) if (size > (sizeof(bplist_match) + 2)
&& !strncmp(buffer, bplist_match, sizeof(bplist_match) - 1)) { && !strncmp(buffer, bplist_match,
sizeof(bplist_match) - 1)) {
// binary plist, let's be crude // binary plist, let's be crude
uint8 len = buffer[sizeof(bplist_match) - 1]; uint8 len = buffer[sizeof(bplist_match) - 1];
url.SetTo(buffer + sizeof(bplist_match), len); url.SetTo(buffer + sizeof(bplist_match), len);