Skip to content

Commit 33dd8e6

Browse files
committed
[style] Collapse empty struct bodies to a single line
Adopt the single-line form for empty struct bodies in block.c and archiver-cpio.c to match the surrounding code style.
1 parent bb60328 commit 33dd8e6

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

xstar/driver/block/block.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@
2424

2525
#include <driver/block/block.h>
2626

27-
struct sub_block_pdata_t
28-
{
27+
struct sub_block_pdata_t {
2928
uint64_t offset;
3029
uint64_t length;
3130
struct block_t * pblk;

xstar/kernel/xfs/archiver-cpio.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ struct mhandle_cpio_t {
4949
struct block_t * blk;
5050
};
5151

52-
struct fhandle_cpio_t
53-
{
52+
struct fhandle_cpio_t {
5453
struct list_head_t head;
5554
struct hlist_node_t node;
5655
char * name;

0 commit comments

Comments
 (0)