summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-07-21 03:34:02 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-07-21 03:34:02 +0000
commit6e47dc89a336af2ed779c81e8a18948a2aa71b6c (patch)
tree0d580a759a0cbb0891b34cde4947334db1462bf9
parentafb7d1dc48fa3eab69212c3ffbd51d636c897ec0 (diff)
downloadsamba-6e47dc89a336af2ed779c81e8a18948a2aa71b6c.tar.gz
samba-6e47dc89a336af2ed779c81e8a18948a2aa71b6c.tar.bz2
samba-6e47dc89a336af2ed779c81e8a18948a2aa71b6c.zip
Add some const & static, remove unused functions.
(This used to be commit 993ee671cc11a95d0d0aa6d60883e03bb473290d)
-rw-r--r--source3/smbd/lanman.c2
-rw-r--r--source3/smbd/password.c23
2 files changed, 1 insertions, 24 deletions
diff --git a/source3/smbd/lanman.c b/source3/smbd/lanman.c
index 049dae98e3..8bfad4ab33 100644
--- a/source3/smbd/lanman.c
+++ b/source3/smbd/lanman.c
@@ -3554,7 +3554,7 @@ static BOOL api_Unsupported(connection_struct *conn,uint16 vuid, char *param,cha
-struct
+const static struct
{
char *name;
int id;
diff --git a/source3/smbd/password.c b/source3/smbd/password.c
index 82c0cef77d..9c67edd255 100644
--- a/source3/smbd/password.c
+++ b/source3/smbd/password.c
@@ -90,29 +90,6 @@ void invalidate_all_vuids(void)
}
/****************************************************************************
-return a validated username
-****************************************************************************/
-char *validated_username(uint16 vuid)
-{
- user_struct *vuser = get_valid_user_struct(vuid);
- if (vuser == NULL)
- return 0;
- return(vuser->user.unix_name);
-}
-
-/****************************************************************************
-return a validated domain
-****************************************************************************/
-char *validated_domain(uint16 vuid)
-{
- user_struct *vuser = get_valid_user_struct(vuid);
- if (vuser == NULL)
- return 0;
- return(vuser->user.domain);
-}
-
-
-/****************************************************************************
Create the SID list for this user.
****************************************************************************/