summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2017-07-02 01:12:00 +0300
committerHans Rosenfeld <hans.rosenfeld@joyent.com>2018-04-23 18:15:38 +0200
commitadb064afeb48ec687de5e8bd683ac74fbe19d656 (patch)
treecad97f9f5cc06fb71ff40db61aee8113a6541007
parentc00b6c91f218888919d6640bcad92097d5b4b68b (diff)
downloadillumos-joyent-adb064afeb48ec687de5e8bd683ac74fbe19d656.tar.gz
9176 smbsrv/libfksmbsrv: duplicate 'const' declaration specifier
Reviewed by: Gordon Ross <gwr@nexenta.com> Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk> Approved by: Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
-rw-r--r--usr/src/uts/common/fs/smbsrv/smb2_dispatch.c4
-rw-r--r--usr/src/uts/common/fs/smbsrv/smb_acl.c2
-rw-r--r--usr/src/uts/common/fs/smbsrv/smb_dispatch.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/usr/src/uts/common/fs/smbsrv/smb2_dispatch.c b/usr/src/uts/common/fs/smbsrv/smb2_dispatch.c
index 773a8f5f03..7513984acd 100644
--- a/usr/src/uts/common/fs/smbsrv/smb2_dispatch.c
+++ b/usr/src/uts/common/fs/smbsrv/smb2_dispatch.c
@@ -68,7 +68,7 @@ void smb2sr_do_async(smb_request_t *);
smb_sdrc_t smb2_invalid_cmd(smb_request_t *);
static void smb2_tq_work(void *);
-static const smb_disp_entry_t const
+static const smb_disp_entry_t
smb2_disp_table[SMB2__NCMDS] = {
/* text-name, pre, func, post, cmd-code, dialect, flags */
@@ -942,7 +942,7 @@ cmd_done:
*/
uint32_t
smb2sr_go_async(smb_request_t *sr,
- smb_sdrc_t (*async_func)(smb_request_t *))
+ smb_sdrc_t (*async_func)(smb_request_t *))
{
smb2_async_req_t *ar;
diff --git a/usr/src/uts/common/fs/smbsrv/smb_acl.c b/usr/src/uts/common/fs/smbsrv/smb_acl.c
index a241fd6fd7..e4f2756184 100644
--- a/usr/src/uts/common/fs/smbsrv/smb_acl.c
+++ b/usr/src/uts/common/fs/smbsrv/smb_acl.c
@@ -75,7 +75,7 @@
* SYSTEM: full access
*/
#ifdef _KERNEL
-static const ace_t const default_dacl[DEFAULT_DACL_ACENUM] = {
+static const ace_t default_dacl[DEFAULT_DACL_ACENUM] = {
{ (uid_t)-1, ACE_ALL_PERMS, 0, ACE_ACCESS_ALLOWED_ACE_TYPE },
{ IDMAP_WK_LOCAL_SYSTEM_GID, ACE_ALL_PERMS, ACE_IDENTIFIER_GROUP,
ACE_ACCESS_ALLOWED_ACE_TYPE }
diff --git a/usr/src/uts/common/fs/smbsrv/smb_dispatch.c b/usr/src/uts/common/fs/smbsrv/smb_dispatch.c
index 5641ebfc81..db7995ea56 100644
--- a/usr/src/uts/common/fs/smbsrv/smb_dispatch.c
+++ b/usr/src/uts/common/fs/smbsrv/smb_dispatch.c
@@ -145,7 +145,7 @@ static int is_andx_com(unsigned char);
static int smbsr_check_result(struct smb_request *, int, int);
static void smb1_tq_work(void *);
-static const smb_disp_entry_t const
+static const smb_disp_entry_t
smb_disp_table[SMB_COM_NUM] = {
{ "SmbCreateDirectory", SMB_SDT_OPS(create_directory), /* 0x00 000 */
0x00, PC_NETWORK_PROGRAM_1_0 },