1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

Another smattering of static and const

(This used to be commit 897cc4a610)
This commit is contained in:
Andrew Bartlett 2002-07-21 03:26:10 +00:00
parent 0cdc28ab40
commit afb7d1dc48
7 changed files with 13 additions and 13 deletions

View File

@ -100,7 +100,7 @@ char *tmpdir(void)
Determine whether we are in the specified group.
****************************************************************************/
BOOL in_group(gid_t group, gid_t current_gid, int ngroups, gid_t *groups)
BOOL in_group(gid_t group, gid_t current_gid, int ngroups, const gid_t *groups)
{
int i;

View File

@ -79,7 +79,7 @@ static int converse(pam_handle_t *pamh, int nargs,
}
int _make_remark(pam_handle_t * pamh, int type, const char *text)
static int _make_remark(pam_handle_t * pamh, int type, const char *text)
{
int retval = PAM_SUCCESS;
@ -241,12 +241,12 @@ static char *_pam_delete(register char *xx)
* obtain a password from the user
*/
int _winbind_read_password(pam_handle_t * pamh
,unsigned int ctrl
,const char *comment
,const char *prompt1
,const char *prompt2
,const char **pass)
static int _winbind_read_password(pam_handle_t * pamh
,unsigned int ctrl
,const char *comment
,const char *prompt1
,const char *prompt2
,const char **pass)
{
int authtok_flag;
int retval;

View File

@ -25,7 +25,7 @@
/* List of all connected clients */
struct winbindd_cli_state *client_list;
static struct winbindd_cli_state *client_list;
static int num_clients;
BOOL opt_nocache = False;
BOOL opt_dual_daemon = False;

View File

@ -136,7 +136,7 @@ static void show_locks(void)
/*****************************************************
return a connection to a server
*******************************************************/
struct cli_state *connect_one(char *share, int snum)
static struct cli_state *connect_one(char *share, int snum)
{
struct cli_state *c;
struct nmb_name called, calling;

View File

@ -30,7 +30,7 @@ extern BOOL AllowDebugChange;
Add all currently available users to another db
********************************************************/
int export_database (struct pdb_context *in, char *db){
static int export_database (struct pdb_context *in, char *db){
struct pdb_context *context;
SAM_ACCOUNT *user = NULL;

View File

@ -29,7 +29,7 @@ static pstring owner_username;
static fstring server;
static int got_pass;
static int test_args;
TALLOC_CTX *ctx;
static TALLOC_CTX *ctx;
#define CREATE_ACCESS_READ READ_CONTROL_ACCESS
#define CREATE_ACCESS_WRITE (WRITE_DAC_ACCESS | WRITE_OWNER_ACCESS)

View File

@ -32,7 +32,7 @@ struct user_auth_info {
/* How low can we go? */
enum tree_level {LEV_WORKGROUP, LEV_SERVER, LEV_SHARE};
enum tree_level level = LEV_SHARE;
static enum tree_level level = LEV_SHARE;
static void usage(void)
{