Skip to content

Commit

Permalink
global: rerun clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
prajnoha committed Sep 27, 2023
1 parent 36583ba commit c556300
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/iface/service-link.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ static const char *_get_arg_value(const char *str, const char *key_eq, size_t *s
if (!strncmp(key_eq, str, strlen(key_eq))) {
/* get the value and its size */
str += strlen(key_eq);
*size = line_end - str;
*size = line_end - str;
return str;
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/resource/ubridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -3670,10 +3670,10 @@ static int _refresh_device_disk_hierarchy_from_sysfs(sid_resource_t *cmd_res)
if (!(vec_buf = sid_buffer_create(&((struct sid_buffer_spec) {.backend = SID_BUFFER_BACKEND_MALLOC,
.type = SID_BUFFER_TYPE_VECTOR,
.mode = SID_BUFFER_MODE_PLAIN}),
&((struct sid_buffer_init) {.size = VVALUE_HEADER_CNT + (count >= 2 ? count - 2 : 0),
&((struct sid_buffer_init) {.size = VVALUE_HEADER_CNT + (count >= 2 ? count - 2 : 0),
.alloc_step = 1,
.limit = 0}),
&r))) {
&r))) {
log_error_errno(ID(cmd_res),
r,
"Failed to create buffer to record hierarchy for device " CMD_DEV_NAME_NUM_FMT,
Expand Down

0 comments on commit c556300

Please sign in to comment.