@@ -15,14 +15,14 @@
#include <linux/genetlink.h>
#include <netlink/genl/mngt.h>
-#include <linux/ksmbd_server.h>
-
-#include <ksmbdtools.h>
-#include <ipc.h>
-#include <worker.h>
-#include <config_parser.h>
-#include <management/user.h>
-#include <management/share.h>
+#include "linux/ksmbd_server.h"
+
+#include "ksmbdtools.h"
+#include "ipc.h"
+#include "worker.h"
+#include "config_parser.h"
+#include "management/user.h"
+#include "management/share.h"
static struct nl_sock *sk;
@@ -9,14 +9,15 @@
#include <endian.h>
#include <glib.h>
#include <errno.h>
-#include <linux/ksmbd_server.h>
-
-#include <rpc.h>
-#include <rpc_srvsvc.h>
-#include <rpc_wkssvc.h>
-#include <rpc_samr.h>
-#include <rpc_lsarpc.h>
-#include <ksmbdtools.h>
+
+#include "linux/ksmbd_server.h"
+
+#include "rpc.h"
+#include "rpc_srvsvc.h"
+#include "rpc_wkssvc.h"
+#include "rpc_samr.h"
+#include "rpc_lsarpc.h"
+#include "ksmbdtools.h"
static GHashTable *pipes_table;
static GRWLock pipes_table_lock;
@@ -10,13 +10,14 @@
#include <glib.h>
#include <pwd.h>
#include <errno.h>
-#include <linux/ksmbd_server.h>
-#include <management/user.h>
-#include <rpc.h>
-#include <rpc_lsarpc.h>
-#include <smbacl.h>
-#include <ksmbdtools.h>
+#include "linux/ksmbd_server.h"
+
+#include "management/user.h"
+#include "rpc.h"
+#include "rpc_lsarpc.h"
+#include "smbacl.h"
+#include "ksmbdtools.h"
#define LSARPC_OPNUM_DS_ROLE_GET_PRIMARY_DOMAIN_INFO 0
#define LSARPC_OPNUM_OPEN_POLICY2 44
@@ -9,13 +9,14 @@
#include <endian.h>
#include <glib.h>
#include <errno.h>
-#include <linux/ksmbd_server.h>
-#include <management/user.h>
-#include <rpc.h>
-#include <rpc_samr.h>
-#include <smbacl.h>
-#include <ksmbdtools.h>
+#include "linux/ksmbd_server.h"
+
+#include "management/user.h"
+#include "rpc.h"
+#include "rpc_samr.h"
+#include "smbacl.h"
+#include "ksmbdtools.h"
#define SAMR_OPNUM_CONNECT5 64
#define SAMR_OPNUM_ENUM_DOMAIN 6
@@ -9,13 +9,14 @@
#include <endian.h>
#include <glib.h>
#include <errno.h>
-#include <linux/ksmbd_server.h>
-#include <management/share.h>
+#include "linux/ksmbd_server.h"
+
+#include "management/share.h"
-#include <rpc.h>
-#include <rpc_srvsvc.h>
-#include <ksmbdtools.h>
+#include "rpc.h"
+#include "rpc_srvsvc.h"
+#include "ksmbdtools.h"
#define SHARE_TYPE_TEMP 0x40000000
#define SHARE_TYPE_HIDDEN 0x80000000
@@ -9,13 +9,13 @@
#include <endian.h>
#include <glib.h>
#include <errno.h>
-#include <linux/ksmbd_server.h>
-#include <management/share.h>
+#include "linux/ksmbd_server.h"
-#include <rpc.h>
-#include <rpc_wkssvc.h>
-#include <ksmbdtools.h>
+#include "management/share.h"
+#include "rpc.h"
+#include "rpc_wkssvc.h"
+#include "ksmbdtools.h"
#define WKSSVC_NETWKSTA_GET_INFO (0)
@@ -6,8 +6,8 @@
* Author(s): Namjae Jeon (linkinjeon@kernel.org)
*/
-#include <smbacl.h>
-#include <ksmbdtools.h>
+#include "smbacl.h"
+#include "ksmbdtools.h"
#include <glib.h>
#include <glib/gprintf.h>
@@ -7,17 +7,18 @@
#include <memory.h>
#include <glib.h>
#include <errno.h>
-#include <linux/ksmbd_server.h>
-#include <ksmbdtools.h>
-#include <worker.h>
-#include <ipc.h>
-#include <rpc.h>
+#include "linux/ksmbd_server.h"
-#include <management/user.h>
-#include <management/share.h>
-#include <management/tree_conn.h>
-#include <management/spnego.h>
+#include "ksmbdtools.h"
+#include "worker.h"
+#include "ipc.h"
+#include "rpc.h"
+
+#include "management/user.h"
+#include "management/share.h"
+#include "management/tree_conn.h"
+#include "management/spnego.h"
#define MAX_WORKER_THREADS 4
static GThreadPool *pool;
@@ -12,12 +12,13 @@
#include <sys/types.h>
#include <unistd.h>
#include <fcntl.h>
-#include <linux/ksmbd_server.h>
-#include <config_parser.h>
-#include <ksmbdtools.h>
-#include <management/user.h>
-#include <management/share.h>
+#include "linux/ksmbd_server.h"
+
+#include "config_parser.h"
+#include "ksmbdtools.h"
+#include "management/user.h"
+#include "management/share.h"
struct smbconf_global global_conf;
struct smbconf_parser parser;
@@ -13,7 +13,7 @@
#include <fcntl.h>
#include <stdio.h>
-#include <ksmbdtools.h>
+#include "ksmbdtools.h"
static const char *app_name = "unknown";
static int log_open;
@@ -19,9 +19,9 @@
#include <stdint.h>
#include <stdbool.h>
-#include <linux/ksmbd_server.h>
-#include <management/spnego.h>
-#include <asn1.h>
+#include "linux/ksmbd_server.h"
+#include "management/spnego.h"
+#include "asn1.h"
#include "spnego_mech.h"
static struct spnego_mech_ctx mech_ctxs[SPNEGO_MAX_MECHS];
@@ -15,8 +15,8 @@
#include <netdb.h>
#include <krb5.h>
-#include <management/spnego.h>
-#include <asn1.h>
+#include "management/spnego.h"
+#include "asn1.h"
#include "spnego_mech.h"
struct spnego_krb5_ctx {
@@ -13,13 +13,11 @@
#include <sys/stat.h>
#include <fcntl.h>
-#include <config_parser.h>
-#include <ksmbdtools.h>
-
-#include <management/share.h>
-
-#include <linux/ksmbd_server.h>
-#include <share_admin.h>
+#include "config_parser.h"
+#include "ksmbdtools.h"
+#include "management/share.h"
+#include "linux/ksmbd_server.h"
+#include "share_admin.h"
static int conf_fd = -1;
static char wbuf[16384];
@@ -19,8 +19,8 @@
#include <stdlib.h>
#include <memory.h>
-#include <md4_hash.h>
#include <asm/byteorder.h>
+#include "md4_hash.h"
#define u8 unsigned char
#define u32 unsigned int
@@ -14,15 +14,13 @@
#include <fcntl.h>
#include <termios.h>
-#include <config_parser.h>
-#include <ksmbdtools.h>
-
-#include <md4_hash.h>
-#include <user_admin.h>
-#include <management/user.h>
-#include <management/share.h>
-
-#include <linux/ksmbd_server.h>
+#include "config_parser.h"
+#include "ksmbdtools.h"
+#include "md4_hash.h"
+#include "user_admin.h"
+#include "management/user.h"
+#include "management/share.h"
+#include "linux/ksmbd_server.h"
#define MAX_NT_PWD_LEN 129
Cosmetic only, but better practice. Signed-off-by: Enzo Matsumiya <ematsumiya@suse.de> --- daemon/ipc.c | 16 ++++++++-------- daemon/rpc.c | 17 +++++++++-------- daemon/rpc_lsarpc.c | 13 +++++++------ daemon/rpc_samr.c | 13 +++++++------ daemon/rpc_srvsvc.c | 11 ++++++----- daemon/rpc_wkssvc.c | 10 +++++----- daemon/smbacl.c | 4 ++-- daemon/worker.c | 19 ++++++++++--------- lib/config_parser.c | 11 ++++++----- lib/ksmbdtools.c | 2 +- lib/management/spnego.c | 6 +++--- lib/management/spnego_krb5.c | 4 ++-- share/share_admin.c | 12 +++++------- user/md4_hash.c | 2 +- user/user_admin.c | 16 +++++++--------- 15 files changed, 79 insertions(+), 77 deletions(-)