mirror of
https://github.com/samba-team/samba.git
synced 2025-08-30 17:49:30 +03:00
Cleaning up the warnings from configure.developer.
Found that Jeremy had already made some of the changes.
(This used to be commit ca02d9f821
)
This commit is contained in:
@ -1,3 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
export CFLAGS="-g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD"
|
CFLAGS="-g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD"
|
||||||
|
export CFLAGS
|
||||||
./configure $*
|
./configure $*
|
||||||
|
@ -252,7 +252,7 @@ void msdfs_close(void)
|
|||||||
|
|
||||||
void msdfs_end(void)
|
void msdfs_end(void)
|
||||||
{
|
{
|
||||||
pstring fname;
|
/* pstring fname; */
|
||||||
msdfs_close();
|
msdfs_close();
|
||||||
|
|
||||||
/* pstrcpy(fname,lock_path(MSDFS_TDB));
|
/* pstrcpy(fname,lock_path(MSDFS_TDB));
|
||||||
|
@ -251,9 +251,7 @@ typedef struct
|
|||||||
BOOL bDebugHiresTimestamp;
|
BOOL bDebugHiresTimestamp;
|
||||||
BOOL bDebugPid;
|
BOOL bDebugPid;
|
||||||
BOOL bDebugUid;
|
BOOL bDebugUid;
|
||||||
#ifdef MS_DFS
|
|
||||||
BOOL bHostMSDfs;
|
BOOL bHostMSDfs;
|
||||||
#endif
|
|
||||||
} global;
|
} global;
|
||||||
|
|
||||||
static global Globals;
|
static global Globals;
|
||||||
@ -1315,9 +1313,7 @@ FN_GLOBAL_BOOL(lp_nt_acl_support,&Globals.bNTAclSupport)
|
|||||||
FN_GLOBAL_BOOL(lp_stat_cache,&Globals.bStatCache)
|
FN_GLOBAL_BOOL(lp_stat_cache,&Globals.bStatCache)
|
||||||
FN_GLOBAL_BOOL(lp_allow_trusted_domains,&Globals.bAllowTrustedDomains)
|
FN_GLOBAL_BOOL(lp_allow_trusted_domains,&Globals.bAllowTrustedDomains)
|
||||||
FN_GLOBAL_BOOL(lp_restrict_anonymous,&Globals.bRestrictAnonymous)
|
FN_GLOBAL_BOOL(lp_restrict_anonymous,&Globals.bRestrictAnonymous)
|
||||||
#ifdef MS_DFS
|
|
||||||
FN_GLOBAL_BOOL(lp_host_msdfs,&Globals.bHostMSDfs)
|
FN_GLOBAL_BOOL(lp_host_msdfs,&Globals.bHostMSDfs)
|
||||||
#endif
|
|
||||||
FN_GLOBAL_INTEGER(lp_os_level,&Globals.os_level)
|
FN_GLOBAL_INTEGER(lp_os_level,&Globals.os_level)
|
||||||
FN_GLOBAL_INTEGER(lp_max_ttl,&Globals.max_ttl)
|
FN_GLOBAL_INTEGER(lp_max_ttl,&Globals.max_ttl)
|
||||||
FN_GLOBAL_INTEGER(lp_max_wins_ttl,&Globals.max_wins_ttl)
|
FN_GLOBAL_INTEGER(lp_max_wins_ttl,&Globals.max_wins_ttl)
|
||||||
|
@ -301,11 +301,13 @@ BOOL reload_services(BOOL test)
|
|||||||
|
|
||||||
ret = lp_load(servicesf,False,False,True);
|
ret = lp_load(servicesf,False,False,True);
|
||||||
|
|
||||||
|
#ifdef MS_DFS
|
||||||
/* load the dfs maps of all the services having
|
/* load the dfs maps of all the services having
|
||||||
a dfs_map parameter
|
a dfs_map parameter
|
||||||
we don't want to do this in lp_load because we want just the smbd
|
we don't want to do this in lp_load because we want just the smbd
|
||||||
server to load up the dfs maps into msdfds.tdb. not nmbd, swat etc*/
|
server to load up the dfs maps into msdfs.tdb. not nmbd, swat etc*/
|
||||||
load_dfsmaps();
|
load_dfsmaps();
|
||||||
|
#endif
|
||||||
|
|
||||||
load_printers();
|
load_printers();
|
||||||
|
|
||||||
|
@ -2138,12 +2138,11 @@ static int call_trans2getdfsreferral(connection_struct *conn, char* inbuf,
|
|||||||
BOOL NT_arch = ((ra_type == RA_WINNT) || (ra_type == RA_WIN2K));
|
BOOL NT_arch = ((ra_type == RA_WINNT) || (ra_type == RA_WIN2K));
|
||||||
pstring pathname;
|
pstring pathname;
|
||||||
int reply_size = 0;
|
int reply_size = 0;
|
||||||
char* dfs_referral = NULL;
|
|
||||||
int max_referral_level = SVAL(params,0);
|
int max_referral_level = SVAL(params,0);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
DEBUG(10,("call_trans2getdfsreferral\n"));
|
DEBUG(10,("call_trans2getdfsreferral\n"));
|
||||||
#ifdef MS_DFS
|
|
||||||
if(!lp_host_msdfs())
|
if(!lp_host_msdfs())
|
||||||
return(ERROR(ERRDOS,ERRbadfunc));
|
return(ERROR(ERRDOS,ERRbadfunc));
|
||||||
|
|
||||||
@ -2163,10 +2162,8 @@ static int call_trans2getdfsreferral(connection_struct *conn, char* inbuf,
|
|||||||
SSVAL(outbuf,smb_flg2,SVAL(outbuf,smb_flg2) | FLAGS2_UNICODE_STRINGS |
|
SSVAL(outbuf,smb_flg2,SVAL(outbuf,smb_flg2) | FLAGS2_UNICODE_STRINGS |
|
||||||
FLAGS2_DFS_PATHNAMES);
|
FLAGS2_DFS_PATHNAMES);
|
||||||
send_trans2_replies(outbuf,bufsize,0,0,*ppdata,reply_size);
|
send_trans2_replies(outbuf,bufsize,0,0,*ppdata,reply_size);
|
||||||
#else
|
|
||||||
DEBUG(0,("Unexpected DFS referral request!\n"));
|
return(-1);
|
||||||
return(ERROR(ERRDOS,ERRbadfunc));
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user