From Murai Takashi <tmurai01@xxxxxxxxx>:
Murai Takashi has uploaded this change for review. (
https://review.haiku-os.org/c/haiku/+/3342 ;)
Change subject: bin/urlwrapper: Fix -Wmisleading-indentation
......................................................................
bin/urlwrapper: Fix -Wmisleading-indentation
Fix misleadingly indented printf() at line 142.
Change-Id: I498d171db6a09425901a13d52a8b2eca1413a068
---
M src/bin/urlwrapper.cpp
1 file changed, 5 insertions(+), 4 deletions(-)
git pull ssh://git.haiku-os.org:22/haiku refs/changes/42/3342/1
diff --git a/src/bin/urlwrapper.cpp b/src/bin/urlwrapper.cpp
index 49aa7a8..48f1d19 100644
--- a/src/bin/urlwrapper.cpp
+++ b/src/bin/urlwrapper.cpp
@@ -57,8 +57,8 @@
message << "\n" << url << "\n\n";
message << "This type of URL has a potential security risk.\n";
message << "Proceed anyway?";
- BAlert* alert = new BAlert("Warning", message.String(), "Proceed",
"Stop", NULL,
- B_WIDTH_AS_USUAL, B_WARNING_ALERT);
+ BAlert* alert = new BAlert("Warning", message.String(), "Proceed",
"Stop",
+ NULL, B_WIDTH_AS_USUAL, B_WARNING_ALERT);
alert->SetShortcut(1, B_ESCAPE);
int32 button;
button = alert->Go();
@@ -139,9 +139,10 @@
const char bplist_match[] =
"bplist00\xd1\x01\x02SURL_\x10";
if (f.ReadAt(0LL, buffer, size) < B_OK)
continue;
- printf("webloc\n");
+ printf("webloc\n");
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
uint8 len = buffer[sizeof(bplist_match)
- 1];
url.SetTo(buffer +
sizeof(bplist_match), len);
--
To view, visit https://review.haiku-os.org/c/haiku/+/3342
To unsubscribe, or for help writing mail filters, visit
https://review.haiku-os.org/settings
Gerrit-Project: haiku
Gerrit-Branch: master
Gerrit-Change-Id: I498d171db6a09425901a13d52a8b2eca1413a068
Gerrit-Change-Number: 3342
Gerrit-PatchSet: 1
Gerrit-Owner: Murai Takashi <tmurai01@xxxxxxxxx>
Gerrit-MessageType: newchange