Skip to content

Commit

Permalink
maint: Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
andy5995 committed Nov 1, 2024
1 parent 32322fe commit 5878299
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/btrfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ is_btrfs(const char *path)

return buf.f_type == BTRFS_SUPER_MAGIC;
#else
(void)path;
(void) path;
return false;
#endif
}
Expand Down Expand Up @@ -116,9 +116,9 @@ do_btrfs_clone(const char *source, const char *dest, int *save_errno)

return 0;
#else
(void)source;
(void)dest;
(void)save_errno;
(void) source;
(void) dest;
(void) save_errno;
return 0;
#endif
}
5 changes: 2 additions & 3 deletions src/messages_rmw.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ void print_msg_warn(void);

void open_err(const char *filename, const char *function_name);

int close_file(FILE **fp, const char *filename, const char *function_name);
int close_file(FILE ** fp, const char *filename, const char *function_name);

void display_dot_trashinfo_error(const char *dti);

Expand All @@ -43,8 +43,7 @@ void msg_err_close_dir(const char *dir, const char *func, const int line);

void msg_err_open_dir(const char *dir, const char *func, const int line);

void
msg_err_rename(const char *src_file, const char *dest_file);
void msg_err_rename(const char *src_file, const char *dest_file);

void msg_err_fatal_fprintf(const char *func);

Expand Down
3 changes: 2 additions & 1 deletion src/trashinfo_rmw.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ create_trashinfo(rmw_target *st_f_props, st_waste *waste_curr,
return close_file(&fp, final_info_dest, __func__);

char *escaped_path_ptr = escaped_path;
if (waste_curr->media_root != NULL && (waste_curr->dev_num == st_f_props->dev_num))
if (waste_curr->media_root != NULL
&& (waste_curr->dev_num == st_f_props->dev_num))
{
escaped_path_ptr = &escaped_path[strlen(waste_curr->media_root)];
if (*escaped_path_ptr == '/')
Expand Down

0 comments on commit 5878299

Please sign in to comment.