Minor improvement for the Dano message reader test application (forgot to check that in earlier).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15141 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -47,8 +47,11 @@ main(int argc, char** argv)
|
||||
}
|
||||
|
||||
BMessage message;
|
||||
if (BPrivate::unflatten_dano_message(magic, file, message) == B_OK)
|
||||
status_t status = BPrivate::unflatten_dano_message(magic, file, message);
|
||||
if (status == B_OK)
|
||||
message.PrintToStream();
|
||||
else
|
||||
fprintf(stderr, "Could not unflatten message: %s\n", strerror(status));
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user