X Tutup
Skip to content

Commit cf0fbc4

Browse files
committed
tree-wide: sort includes
Sort the includes accoding to the new coding style.
1 parent ab5dfda commit cf0fbc4

File tree

205 files changed

+334
-352
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

205 files changed

+334
-352
lines changed

src/backlight/backlight.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,11 @@
1919
along with systemd; If not, see <http://www.gnu.org/licenses/>.
2020
***/
2121

22-
#include "libudev.h"
23-
2422
#include "alloc-util.h"
2523
#include "def.h"
2624
#include "escape.h"
2725
#include "fileio.h"
26+
#include "libudev.h"
2827
#include "mkdir.h"
2928
#include "parse-util.h"
3029
#include "proc-cmdline.h"

src/basic/af-list.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@
1919
along with systemd; If not, see <http://www.gnu.org/licenses/>.
2020
***/
2121

22-
#include <sys/socket.h>
2322
#include <string.h>
23+
#include <sys/socket.h>
2424

25-
#include "util.h"
2625
#include "af-list.h"
26+
#include "util.h"
2727

2828
static const struct af_name* lookup_af(register const char *str, register unsigned int len);
2929

30-
#include "af-to-name.h"
3130
#include "af-from-name.h"
31+
#include "af-to-name.h"
3232

3333
const char *af_to_name(int id) {
3434

src/basic/arphrd-list.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222
#include <net/if_arp.h>
2323
#include <string.h>
2424

25-
#include "util.h"
2625
#include "arphrd-list.h"
26+
#include "util.h"
2727

2828
static const struct arphrd_name* lookup_arphrd(register const char *str, register unsigned int len);
2929

30-
#include "arphrd-to-name.h"
3130
#include "arphrd-from-name.h"
31+
#include "arphrd-to-name.h"
3232

3333
const char *arphrd_to_name(int id) {
3434

src/basic/calendarspec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
#include <string.h>
2424

2525
#include "alloc-util.h"
26-
#include "string-util.h"
2726
#include "calendarspec.h"
2827
#include "fileio.h"
28+
#include "string-util.h"
2929

3030
#define BITS_WEEKDAYS 127
3131

src/basic/cap-list.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828

2929
static const struct capability_name* lookup_capability(register const char *str, register unsigned int len);
3030

31-
#include "cap-to-name.h"
3231
#include "cap-from-name.h"
32+
#include "cap-to-name.h"
3333

3434
const char *capability_to_name(int id) {
3535

src/basic/errno-list.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@
2121

2222
#include <string.h>
2323

24-
#include "util.h"
2524
#include "errno-list.h"
25+
#include "util.h"
2626

2727
static const struct errno_name* lookup_errno(register const char *str,
2828
register unsigned int len);
2929

30-
#include "errno-to-name.h"
3130
#include "errno-from-name.h"
31+
#include "errno-to-name.h"
3232

3333
const char *errno_to_name(int id) {
3434

src/basic/exit-status.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
along with systemd; If not, see <http://www.gnu.org/licenses/>.
2020
***/
2121

22-
#include <stdlib.h>
2322
#include <signal.h>
23+
#include <stdlib.h>
2424

2525
#include "exit-status.h"
26-
#include "set.h"
2726
#include "macro.h"
27+
#include "set.h"
2828

2929
const char* exit_status_to_string(ExitStatus status, ExitStatusLevel level) {
3030

src/basic/fdset.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
along with systemd; If not, see <http://www.gnu.org/licenses/>.
2020
***/
2121

22-
#include <errno.h>
2322
#include <dirent.h>
23+
#include <errno.h>
2424
#include <fcntl.h>
2525

2626
#include "sd-daemon.h"

src/basic/fileio-label.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
along with systemd; If not, see <http://www.gnu.org/licenses/>.
2121
***/
2222

23-
#include "util.h"
24-
#include "selinux-util.h"
2523
#include "fileio-label.h"
24+
#include "selinux-util.h"
25+
#include "util.h"
2626

2727
int write_string_file_atomic_label(const char *fn, const char *line) {
2828
int r;

src/basic/json.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
#include <sys/types.h>
2424

2525
#include "alloc-util.h"
26+
#include "hexdecoct.h"
2627
#include "json.h"
2728
#include "macro.h"
28-
#include "hexdecoct.h"
2929
#include "string-util.h"
3030
#include "utf8.h"
3131

0 commit comments

Comments
 (0)
X Tutup