History

include/linux/sysctl.h: inline braces for ctl_table and ctl_table_header

Fix coding style of "struct ctl_table" and "struct ctl_table_header" to have inline braces. Besides the wide use of this proposed cose style, this change helps to find at a glance the struct definition when navigating the code.

Alessio Balsini committed 6 years ago

Commit d5ffb711 parent 3d821911 file · +2 −4Browse files

Showing the changes to include/linux (1 of 1 file). Show all

Unified · Split

include/linux/sysctl.h+2−4
@@ -120,8 +120,7 @@ static inline void *proc_sys_poll_event(struct ctl_table_poll *poll) · 119 unmodified lines
120120 struct ctl_table_poll name = __CTL_TABLE_POLL_INITIALIZER(name)
121121
122122 /* A sysctl table is an array of struct ctl_table: */
123−struct ctl_table
124−{
123+struct ctl_table {
125124 const char *procname; /* Text ID for /proc/sys, or zero */
126125 void *data;
127126 int maxlen;
@@ -140,8 +139,7 @@ struct ctl_node { · 12 unmodified lines
140139
141140 /* struct ctl_table_header is used to maintain dynamic lists of
142141 struct ctl_table trees. */
143−struct ctl_table_header
144−{
142+struct ctl_table_header {
145143 union {
146144 struct {
147145 struct ctl_table *ctl_table;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t