Skip to content

Commit

Permalink
Few other clang-format fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ret2libc committed Aug 17, 2021
1 parent 59abb18 commit 9d9df6e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion librz/core/cbin.c
Original file line number Diff line number Diff line change
Expand Up @@ -2670,7 +2670,7 @@ RZ_IPI void rz_core_bin_segments_print(RzCore *core, RzCmdStateOutput *state, Rz
rz_cmd_state_output_array_start(state);
rz_cmd_state_output_set_columnsf(state, "XxXxssx", "paddr", "size", "vaddr", "vsize", "perm", "name", "align");

rz_list_foreach(hashes, iter, hashname) {
rz_list_foreach (hashes, iter, hashname) {
const RzMsgDigestPlugin *msg_plugin = rz_msg_digest_plugin_by_name(hashname);
if (msg_plugin) {
rz_cmd_state_output_set_columnsf(state, "s", msg_plugin->name);
Expand Down
2 changes: 1 addition & 1 deletion librz/core/cmd_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ RZ_API RzCmdDesc *rz_cmd_get_desc(RzCmd *cmd, const char *cmd_identifier) {
RZ_API void rz_cmd_desc_set_default_mode(RzCmdDesc *cd, RzOutputMode mode) {
rz_return_if_fail(cd);

switch(cd->type) {
switch (cd->type) {
case RZ_CMD_DESC_TYPE_ARGV_MODES:
cd->d.argv_modes_data.default_mode = mode;
break;
Expand Down
4 changes: 2 additions & 2 deletions test/unit/test_bin.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ bool test_rz_bin(void) {
RzBinImport *import;
RzListIter *it;
rz_list_foreach (imports, it, import) {
for(int i = 0; i < RZ_ARRAY_SIZE(import_names); ++i) {
for (int i = 0; i < RZ_ARRAY_SIZE(import_names); ++i) {
if (!strcmp(import->name, import_names[i])) {
has_import_names[i] = true;
break;
}
}
}
for(int i = 0; i < RZ_ARRAY_SIZE(import_names); ++i) {
for (int i = 0; i < RZ_ARRAY_SIZE(import_names); ++i) {
mu_assert_true(has_import_names[i], "Import name was not found");
}

Expand Down

0 comments on commit 9d9df6e

Please sign in to comment.