tree-wide: sort includes

Sort the includes accoding to the new coding style.
This commit is contained in:
Thomas Hindoe Paaboel Andersen
2015-11-16 22:09:36 +01:00
parent ab5dfda78f
commit cf0fbc49e6
205 changed files with 345 additions and 363 deletions

View File

@@ -19,12 +19,11 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include "libudev.h"
#include "alloc-util.h"
#include "def.h"
#include "escape.h"
#include "fileio.h"
#include "libudev.h"
#include "mkdir.h"
#include "parse-util.h"
#include "proc-cmdline.h"

View File

@@ -19,16 +19,16 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <sys/socket.h>
#include <string.h>
#include <sys/socket.h>
#include "util.h"
#include "af-list.h"
#include "util.h"
static const struct af_name* lookup_af(register const char *str, register unsigned int len);
#include "af-to-name.h"
#include "af-from-name.h"
#include "af-to-name.h"
const char *af_to_name(int id) {

View File

@@ -22,13 +22,13 @@
#include <net/if_arp.h>
#include <string.h>
#include "util.h"
#include "arphrd-list.h"
#include "util.h"
static const struct arphrd_name* lookup_arphrd(register const char *str, register unsigned int len);
#include "arphrd-to-name.h"
#include "arphrd-from-name.h"
#include "arphrd-to-name.h"
const char *arphrd_to_name(int id) {

View File

@@ -23,9 +23,9 @@
#include <string.h>
#include "alloc-util.h"
#include "string-util.h"
#include "calendarspec.h"
#include "fileio.h"
#include "string-util.h"
#define BITS_WEEKDAYS 127

View File

@@ -28,8 +28,8 @@
static const struct capability_name* lookup_capability(register const char *str, register unsigned int len);
#include "cap-to-name.h"
#include "cap-from-name.h"
#include "cap-to-name.h"
const char *capability_to_name(int id) {

View File

@@ -21,14 +21,14 @@
#include <string.h>
#include "util.h"
#include "errno-list.h"
#include "util.h"
static const struct errno_name* lookup_errno(register const char *str,
register unsigned int len);
#include "errno-to-name.h"
#include "errno-from-name.h"
#include "errno-to-name.h"
const char *errno_to_name(int id) {

View File

@@ -19,12 +19,12 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <stdlib.h>
#include <signal.h>
#include <stdlib.h>
#include "exit-status.h"
#include "set.h"
#include "macro.h"
#include "set.h"
const char* exit_status_to_string(ExitStatus status, ExitStatusLevel level) {

View File

@@ -19,8 +19,8 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <errno.h>
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include "sd-daemon.h"

View File

@@ -20,9 +20,9 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include "util.h"
#include "selinux-util.h"
#include "fileio-label.h"
#include "selinux-util.h"
#include "util.h"
int write_string_file_atomic_label(const char *fn, const char *line) {
int r;

View File

@@ -23,9 +23,9 @@
#include <sys/types.h>
#include "alloc-util.h"
#include "hexdecoct.h"
#include "json.h"
#include "macro.h"
#include "hexdecoct.h"
#include "string-util.h"
#include "utf8.h"

View File

@@ -19,10 +19,10 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include "label.h"
#include "selinux-util.h"
#include "smack-util.h"
#include "util.h"
#include "label.h"
int label_fix(const char *path, bool ignore_enoent, bool ignore_erofs) {
int r, q;

View File

@@ -19,12 +19,12 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <stdlib.h>
#include <stdbool.h>
#include <errno.h>
#include <string.h>
#include <stdio.h>
#include <limits.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/file.h>
#include "alloc-util.h"

View File

@@ -20,8 +20,8 @@
***/
#include "def.h"
#include "string-util.h"
#include "login-util.h"
#include "string-util.h"
bool session_id_valid(const char *id) {

View File

@@ -20,8 +20,8 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include "mempool.h"
#include "macro.h"
#include "mempool.h"
#include "util.h"
struct pool {

View File

@@ -20,8 +20,8 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <unistd.h>
#include <stdio.h>
#include <unistd.h>
#include "label.h"
#include "mkdir.h"

View File

@@ -19,8 +19,8 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <string.h>
#include <errno.h>
#include <string.h>
#include "fs-util.h"
#include "mkdir.h"

View File

@@ -24,15 +24,15 @@
#include <sys/un.h>
#ifdef HAVE_SELINUX
#include <selinux/selinux.h>
#include <selinux/label.h>
#include <selinux/context.h>
#include <selinux/label.h>
#include <selinux/selinux.h>
#endif
#include "alloc-util.h"
#include "strv.h"
#include "path-util.h"
#include "selinux-util.h"
#include "strv.h"
#ifdef HAVE_SELINUX
DEFINE_TRIVIAL_CLEANUP_FUNC(security_context_t, freecon);

View File

@@ -23,8 +23,8 @@
#include <sys/mman.h>
#include "macro.h"
#include "util.h"
#include "sigbus.h"
#include "util.h"
#define SIGBUS_QUEUE_MAX 64

View File

@@ -17,9 +17,8 @@
coding style)
*/
#include "sparse-endian.h"
#include "siphash24.h"
#include "sparse-endian.h"
#include "unaligned.h"
#include "util.h"

View File

@@ -27,8 +27,8 @@
#include "alloc-util.h"
#include "escape.h"
#include "string-util.h"
#include "util.h"
#include "strv.h"
#include "util.h"
char *strv_find(char **l, const char *name) {
char **i;

Some files were not shown because too many files have changed in this diff Show More