1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-03 12:58:35 +03:00

Make sure prototypes are always included, make some functions static and

remove some unused functions.
This commit is contained in:
Jelmer Vernooij 2008-10-20 18:59:51 +02:00
parent 01a902f599
commit 87ec1d2532
78 changed files with 132 additions and 86 deletions

View File

@ -41,6 +41,7 @@
*/
#include "includes.h"
#include "../lib/crypto/crc32.h"
static const uint32_t crc32_tab[] = {
0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f,

View File

@ -18,6 +18,7 @@
*/
#include "includes.h"
#include "../lib/crypto/md4.h"
/* NOTE: This code makes no attempt to be fast!

View File

@ -80,6 +80,8 @@ enum debug_logtype {DEBUG_STDOUT = 0, DEBUG_FILE = 1, DEBUG_STDERR = 2};
*/
_PUBLIC_ void dbghdr(int level, const char *location, const char *func);
_PUBLIC_ void dbghdrclass(int level, int class, const char *location, const char *func);
/**
reopen the log file (usually called because the log file name might have changed)
*/
@ -127,3 +129,5 @@ _PUBLIC_ void register_debug_handlers(const char *name, struct debug_ops *ops);
macro instead.
*/
_PUBLIC_ void dbgtext(const char *format, ...) PRINTF_ATTRIBUTE(1,2);
extern XFILE *dbf;

View File

@ -231,7 +231,12 @@ bool nt_time_equal(NTTIME *t1, NTTIME *t2);
void interpret_dos_date(uint32_t date,int *year,int *month,int *day,int *hour,int *minute,int *second);
struct timespec nt_time_to_unix_timespec(NTTIME *nt);
time_t convert_timespec_to_time_t(struct timespec ts);
struct timespec convert_time_t_to_timespec(time_t t);
bool null_timespec(struct timespec ts);
#endif /* _SAMBA_TIME_H_ */

View File

@ -21,6 +21,7 @@
#include "includes.h"
#include "system/filesys.h"
#include "../lib/util/unix_privs.h"
/**
* @file

View File

@ -283,7 +283,6 @@ _PUBLIC_ bool fcntl_lock(int fd, int op, off_t offset, off_t count, int type)
return true;
}
void print_asc(int level, const uint8_t *buf,int len)
{
int i;

View File

@ -431,6 +431,9 @@ load a file into memory from a fd.
**/
_PUBLIC_ char *fd_load(int fd, size_t *size, size_t maxsize, TALLOC_CTX *mem_ctx);
char **file_lines_parse(char *p, size_t size, int *numlines, TALLOC_CTX *mem_ctx);
/**
load a file into memory
**/
@ -585,6 +588,8 @@ _PUBLIC_ void *smb_xmemdup(const void *p, size_t size);
**/
_PUBLIC_ char *smb_xstrdup(const char *s);
char *smb_xstrndup(const char *s, size_t n);
/**
Like strdup but for memory.
**/
@ -609,6 +614,8 @@ _PUBLIC_ bool all_zero(const uint8_t *ptr, size_t size);
*/
_PUBLIC_ void *realloc_array(void *ptr, size_t el_size, unsigned count, bool free_on_fail);
void *malloc_array(size_t el_size, unsigned int count);
/* The following definitions come from lib/util/fsusage.c */
@ -715,4 +722,8 @@ _PUBLIC_ void *talloc_check_name_abort(const void *ptr, const char *name);
#define talloc_get_type_abort(ptr, type) \
(type *)talloc_check_name_abort(ptr, #type)
bool unmap_file(void *start, size_t size);
void print_asc(int level, const uint8_t *buf,int len);
#endif /* _SAMBA_UTIL_H_ */

View File

@ -96,4 +96,6 @@ char *x_fgets(char *s, int size, XFILE *stream) ;
* set then an error is returned */
off_t x_tseek(XFILE *f, off_t offset, int whence);
XFILE *x_fdup(const XFILE *f);
#endif /* _XFILE_H_ */

View File

@ -23,6 +23,7 @@
#include "lib/events/events.h"
#include "../lib/util/dlinklist.h"
#include "../libcli/nbt/libnbt.h"
#include "../libcli/nbt/nbt_proto.h"
#include "lib/socket/socket.h"
#include "librpc/gen_ndr/ndr_nbt.h"
#include "param/param.h"

View File

@ -24,15 +24,6 @@
#include "system/network.h"
#include "librpc/ndr/libndr.h"
_PUBLIC_ void ndr_print_in_addr(struct ndr_print *ndr, const char *name, const struct in_addr *_ip)
{
struct in_addr ip;
ip.s_addr = htonl(_ip->s_addr);
ndr->print(ndr, "%-25s: %s", name, inet_ntoa(ip));
}
_PUBLIC_ void ndr_print_GUID(struct ndr_print *ndr, const char *name, const struct GUID *guid)
{
ndr->print(ndr, "%-25s: %s", name, GUID_string(ndr, guid));

View File

@ -120,8 +120,6 @@ const struct ndr_interface_list *ndr_table_list(void)
}
NTSTATUS ndr_table_register_builtin_tables(void);
NTSTATUS ndr_table_init(void)
{
static bool initialized = false;

View File

@ -8,6 +8,7 @@ const struct ndr_interface_table *ndr_table_by_name(const char *name);
const struct ndr_interface_table *ndr_table_by_uuid(const struct GUID *uuid);
const struct ndr_interface_list *ndr_table_list(void);
NTSTATUS ndr_table_init(void);
NTSTATUS ndr_table_register_builtin_tables(void);
#endif /* _NDR_TABLE_PROTO_H_ */

View File

@ -171,7 +171,7 @@ static void ndrdump_data(uint8_t *d, uint32_t l, bool force)
};
ndr_table_init();
#if (_SAMBA_BUILD_ >= 3)
/* Initialise samba stuff */
load_case_tables();
@ -179,8 +179,7 @@ static void ndrdump_data(uint8_t *d, uint32_t l, bool force)
dbf = x_stderr;
setup_logging(argv[0],True);
#endif
setup_logging(argv[0], true);
pc = poptGetContext("ndrdump", argc, argv, long_options, 0);

View File

@ -24,6 +24,7 @@
#include "auth/auth.h"
#include "libcli/security/security.h"
#include "librpc/gen_ndr/ndr_netlogon.h"
#include "auth/auth_sam_reply.h"
NTSTATUS auth_convert_server_info_sambaseinfo(TALLOC_CTX *mem_ctx,
struct auth_serversupplied_info *server_info,

View File

@ -25,6 +25,7 @@
#include "librpc/gen_ndr/samr.h" /* for struct samrPassword */
#include "auth/credentials/credentials.h"
#include "auth/credentials/credentials_krb5.h"
#include "auth/credentials/credentials_proto.h"
#include "libcli/auth/libcli_auth.h"
#include "lib/events/events.h"
#include "param/param.h"

View File

@ -30,6 +30,7 @@
#include "../lib/util/util_ldb.h"
#include "auth/credentials/credentials.h"
#include "auth/credentials/credentials_krb5.h"
#include "auth/credentials/credentials_proto.h"
#include "param/param.h"
#include "lib/events/events.h"

View File

@ -319,7 +319,7 @@ static const struct gensec_security_ops gensec_sasl_security_ops = {
.priority = GENSEC_SASL
};
int gensec_sasl_log(void *context,
static int gensec_sasl_log(void *context,
int sasl_log_level,
const char *message)
{

View File

@ -1361,7 +1361,7 @@ static NTSTATUS gensec_gssapi_session_info(struct gensec_security *gensec_securi
return NT_STATUS_OK;
}
size_t gensec_gssapi_sig_size(struct gensec_security *gensec_security, size_t data_size)
static size_t gensec_gssapi_sig_size(struct gensec_security *gensec_security, size_t data_size)
{
struct gensec_gssapi_state *gensec_gssapi_state
= talloc_get_type(gensec_security->private_data, struct gensec_gssapi_state);

View File

@ -29,6 +29,7 @@
#include "libcli/auth/libcli_auth.h"
#include "auth/auth.h"
#include "param/param.h"
#include "auth/gensec/schannel_state.h"
/**
connect to the schannel ldb

View File

@ -24,6 +24,8 @@
#include "includes.h"
#include "../lib/util/asn1.h"
#include "auth/gensec/gensec.h"
#include "system/kerberos.h"
#include "auth/kerberos/kerberos.h"
/*
generate a krb5 GSS-API wrapper packet given a ticket

View File

@ -23,6 +23,7 @@
#include "includes.h"
#include "system/kerberos.h"
#include "auth/kerberos/kerberos.h"
#ifdef HAVE_KRB5

View File

@ -36,6 +36,7 @@
#include "includes.h"
#include "system/kerberos.h"
#include "auth/kerberos/kerberos.h"
/* Taken from accept_sec_context.c,v 1.65 */
krb5_error_code smb_rd_req_return_stuff(krb5_context context,

View File

@ -23,6 +23,7 @@
#include "includes.h"
#include "auth/auth.h"
#include "auth/auth_proto.h"
#include "libcli/security/security.h"
#include "libcli/auth/libcli_auth.h"
#include "dsdb/samdb/samdb.h"

View File

@ -18,6 +18,7 @@
*/
#include "includes.h"
#include "auth/ntlm/pam_errors.h"
#ifdef WITH_HAVE_SECURITY_PAM_APPL_H
#include <security/pam_appl.h>

View File

@ -20,19 +20,6 @@
#ifndef __AUTH_NTLM_PAM_ERRORS_H__
#define __AUTH_NTLM_PAM_ERRORS_H__
/* The following definitions come from auth/pam_errors.c */
/*****************************************************************************
convert a PAM error to a NT status32 code
*****************************************************************************/
NTSTATUS pam_to_nt_status(int pam_error);
/*****************************************************************************
convert an NT status32 code to a PAM error
*****************************************************************************/
int nt_status_to_pam(NTSTATUS nt_status);
/*****************************************************************************
convert a PAM error to a NT status32 code
*****************************************************************************/

View File

@ -20,8 +20,8 @@
*/
#include "includes.h"
#include "pstring.h"
#include "param/param.h"
#include "auth/ntlmssp/msrpc_parse.h"
/*
this is a tiny msrpc packet generator. I am only using this to

View File

@ -29,6 +29,7 @@
#include "libcli/ldap/ldap.h"
#include "librpc/gen_ndr/ndr_netlogon.h"
#include "param/param.h"
#include "auth/auth_sam.h"
const char *user_attrs[] = {
/* required for the krb5 kdc */

View File

@ -30,6 +30,7 @@
#include "../lib/util/dlinklist.h"
#include "param/param.h"
#include "librpc/gen_ndr/security.h"
#include "cluster/ctdb/ctdb_cluster.h"
/* a linked list of messaging handlers, allowing incoming messages
to be directed to the right messaging context */

View File

@ -22,6 +22,8 @@
#include "includes.h"
#include "librpc/gen_ndr/samr.h"
#include "dsdb/common/flags.h"
#include "lib/ldb/include/ldb.h"
#include "dsdb/common/proto.h"
/*
translated the ACB_CTRL Flags to UserFlags (userAccountControl)

View File

@ -36,7 +36,7 @@
/**
* Make a and 'and' or 'or' tree from the two supplied elements
*/
struct ldb_parse_tree *make_parse_list(struct ldb_module *module,
static struct ldb_parse_tree *make_parse_list(struct ldb_module *module,
TALLOC_CTX *mem_ctx, enum ldb_parse_op op,
struct ldb_parse_tree *first_arm, struct ldb_parse_tree *second_arm)
{
@ -63,7 +63,7 @@ struct ldb_parse_tree *make_parse_list(struct ldb_module *module,
/**
* Make an equality or prefix match tree, from the attribute, operation and matching value supplied
*/
struct ldb_parse_tree *make_match_tree(struct ldb_module *module,
static struct ldb_parse_tree *make_match_tree(struct ldb_module *module,
TALLOC_CTX *mem_ctx, enum ldb_parse_op op,
const char *attr, const DATA_BLOB *match)
{

View File

@ -87,7 +87,7 @@ static struct partition_context *partition_init_ctx(struct ldb_module *module, s
* helper functions to call the next module in chain
* */
int partition_request(struct ldb_module *module, struct ldb_request *request)
static int partition_request(struct ldb_module *module, struct ldb_request *request)
{
int ret;
switch (request->operation) {

View File

@ -80,8 +80,8 @@ struct samldb_ctx {
struct samldb_step *curstep;
};
struct samldb_ctx *samldb_ctx_init(struct ldb_module *module,
struct ldb_request *req)
static struct samldb_ctx *samldb_ctx_init(struct ldb_module *module,
struct ldb_request *req)
{
struct samldb_ctx *ac;

View File

@ -54,8 +54,8 @@ struct update_kt_ctx {
bool found;
};
struct update_kt_ctx *update_kt_ctx_init(struct ldb_module *module,
struct ldb_request *req)
static struct update_kt_ctx *update_kt_ctx_init(struct ldb_module *module,
struct ldb_request *req)
{
struct update_kt_ctx *ac;

View File

@ -39,7 +39,7 @@ RCSID("$Id$");
* free all the memory used by (len, keys)
*/
void
static void
hdb_free_keys (krb5_context context, int len, Key *keys)
{
int i;
@ -250,7 +250,7 @@ add_enctype_to_key_set(Key **key_set, size_t *nkeyset,
* it's random keys that is going to be created.
*/
krb5_error_code
static krb5_error_code
hdb_generate_key_set(krb5_context context, krb5_principal principal,
Key **ret_key_set, size_t *nkeyset, int no_salt)
{
@ -362,7 +362,7 @@ hdb_generate_key_set(krb5_context context, krb5_principal principal,
}
krb5_error_code
static krb5_error_code
hdb_generate_key_set_password(krb5_context context,
krb5_principal principal,
const char *password,

View File

@ -20,8 +20,9 @@
*/
#include "../replace/replace.h"
#include "heimdal/lib/gssapi/gssapi_mech.h"
void *__gss_ntlm_initialize(void)
gssapi_mech_interface __gss_ntlm_initialize(void)
{
return NULL;
}

View File

@ -147,4 +147,8 @@ struct smb_iconv_convenience *smb_iconv_convenience_init(TALLOC_CTX *mem_ctx,
const char *dos_charset,
const char *unix_charset,
bool native_iconv);
void load_case_tables(void);
bool charset_register_backend(const void *_funcs);
#endif /* __CHARSET_H__ */

View File

@ -20,6 +20,7 @@
#include "includes.h"
#include "system/filesys.h"
#include "auth/credentials/credentials.h"
#include "lib/cmdline/credentials.h"
static const char *cmdline_get_userpassword(struct cli_credentials *credentials)
{

View File

@ -36,4 +36,6 @@ extern struct poptOption popt_common_credentials[];
extern struct cli_credentials *cmdline_credentials;
extern struct loadparm_context *cmdline_lp_ctx;
void popt_common_dont_ask(void);
#endif /* _POPT_COMMON_H */

View File

@ -22,6 +22,7 @@
#include "talloc.h"
#include "events.h"
#include "events_internal.h"
#include "events_util.h"
#include <fcntl.h>
/**

View File

@ -211,6 +211,10 @@ char *ldb_casefold_default(void *context, void *mem_ctx, const char *s, size_t n
void ldb_msg_remove_element(struct ldb_message *msg, struct ldb_message_element *el);
int ldb_msg_element_compare_name(struct ldb_message_element *el1,
struct ldb_message_element *el2);
void ldb_dump_results(struct ldb_context *ldb, struct ldb_result *result, FILE *f);
/**
Obtain current/next database sequence number
*/
@ -273,4 +277,7 @@ int ldb_module_done(struct ldb_request *req,
int ldb_mod_register_control(struct ldb_module *module, const char *oid);
struct ldb_val ldb_binary_decode(void *mem_ctx, const char *str);
#endif

View File

@ -86,3 +86,5 @@ int map_return_fatal_error(struct ldb_request *req,
int map_return_normal_error(struct ldb_request *req,
struct ldb_reply *ares,
int error);
int map_return_entry(struct map_context *ac, struct ldb_reply *ares);

View File

@ -205,7 +205,7 @@ static struct ldb_message *ltdb_pull_attrs(struct ldb_module *module,
return LDB_ERR_NO_SUCH_OBJECT on record-not-found
and LDB_SUCCESS on success
*/
int ltdb_search_base(struct ldb_module *module, struct ldb_dn *dn)
static int ltdb_search_base(struct ldb_module *module, struct ldb_dn *dn)
{
struct ltdb_private *ltdb = (struct ltdb_private *)module->private_data;
TDB_DATA tdb_key, tdb_data;

View File

@ -161,7 +161,7 @@ failed:
check special dn's have valid attributes
currently only @ATTRIBUTES is checked
*/
int ltdb_check_special_dn(struct ldb_module *module,
static int ltdb_check_special_dn(struct ldb_module *module,
const struct ldb_message *msg)
{
int i, j;
@ -968,7 +968,7 @@ done:
return ret;
}
void ltdb_request_done(struct ldb_request *req, int error)
static void ltdb_request_done(struct ldb_request *req, int error)
{
struct ldb_reply *ares;

View File

@ -70,7 +70,7 @@ struct private_data {
};
int store_destructor(struct results_store *del)
static int store_destructor(struct results_store *del)
{
struct private_data *priv = del->priv;
struct results_store *loop;

View File

@ -508,6 +508,18 @@ WERROR reg_diff_load(const char *filename,
const struct reg_diff_callbacks *callbacks,
void *callback_data);
WERROR reg_dotreg_diff_load(int fd,
struct smb_iconv_convenience *iconv_convenience,
const struct reg_diff_callbacks *callbacks,
void *callback_data);
WERROR reg_preg_diff_load(int fd,
struct smb_iconv_convenience *iconv_convenience,
const struct reg_diff_callbacks *callbacks,
void *callback_data);
WERROR local_get_predefined_key(struct registry_context *ctx,
uint32_t key_id, struct registry_key **key);
#endif /* _REGISTRY_H */

View File

@ -29,7 +29,7 @@
This is what sys_select() used to do in Samba.
********************************************************************/
int sys_select_intr(int maxfd, fd_set *readfds, fd_set *writefds, fd_set *errorfds, struct timeval *tval)
static int sys_select_intr(int maxfd, fd_set *readfds, fd_set *writefds, fd_set *errorfds, struct timeval *tval)
{
int ret;
fd_set *readfds2, readfds_buf, *writefds2, writefds_buf, *errorfds2, errorfds_buf;

View File

@ -363,7 +363,6 @@ struct tls_params *tls_initialise(TALLOC_CTX *mem_ctx, struct loadparm_context *
const char *crlfile = private_path(tmp_ctx, lp_ctx, lp_tls_crlfile(lp_ctx));
const char *dhpfile = private_path(tmp_ctx, lp_ctx, lp_tls_dhpfile(lp_ctx));
void tls_cert_generate(TALLOC_CTX *, const char *, const char *, const char *);
params = talloc(mem_ctx, struct tls_params);
if (params == NULL) {
talloc_free(tmp_ctx);

View File

@ -31,6 +31,10 @@
#define LIFETIME 700*24*60*60
#define DH_BITS 1024
void tls_cert_generate(TALLOC_CTX *mem_ctx,
const char *keyfile, const char *certfile,
const char *cafile);
/*
auto-generate a set of self signed certificates
*/

View File

@ -21,6 +21,7 @@
*/
#include "includes.h"
#include "libcli/auth/libcli_auth.h"
/* NOTES:

View File

@ -23,6 +23,7 @@
#include "../lib/util/asn1.h"
#include "libcli/ldap/ldap.h"
#include "lib/ldb/include/ldb.h"
#include "libcli/ldap/ldap_proto.h"
struct control_handler {
const char *oid;

View File

@ -24,6 +24,7 @@
#include "includes.h"
#include "libcli/ldap/ldap.h"
#include "libcli/ldap/ldap_client.h"
#include "libcli/ldap/ldap_proto.h"
_PUBLIC_ struct ldap_message *new_ldap_message(TALLOC_CTX *mem_ctx)

View File

@ -25,6 +25,7 @@
#include "libcli/ldap/ldap.h"
#include "librpc/gen_ndr/ndr_security.h"
#include "librpc/gen_ndr/ndr_misc.h"
#include "libcli/ldap/ldap_ndr.h"
/*
encode a NDR uint32 as a ldap filter element

View File

@ -20,6 +20,7 @@
#include "includes.h"
#include "libcli/raw/libcliraw.h"
#include "libcli/raw/raw_proto.h"
/***************************************************************************

View File

@ -27,6 +27,7 @@
#include "lib/socket/socket.h"
#include "libcli/resolve/resolve.h"
#include "param/param.h"
#include "libcli/raw/raw_proto.h"
struct sock_connect_state {
struct composite_context *ctx;

View File

@ -21,6 +21,7 @@
#include "includes.h"
#include "libcli/raw/libcliraw.h"
#include "libcli/raw/raw_proto.h"
/*******************************************************************
put a dos date into a buffer (time/date format)

View File

@ -20,6 +20,7 @@
#include "includes.h"
#include "smb.h"
#include "libcli/raw/libcliraw.h"
#include "libcli/raw/raw_proto.h"
/*
work out how many bytes on the wire a ea list will consume.

View File

@ -20,6 +20,7 @@
#include "includes.h"
#include "smb.h"
#include "libcli/raw/libcliraw.h"
#include "libcli/raw/raw_proto.h"
/****************************************************************************
lpq - async send

View File

@ -30,6 +30,7 @@
#include "librpc/gen_ndr/ndr_nbt.h"
#include "../libcli/nbt/libnbt.h"
#include "param/param.h"
#include "libcli/resolve/resolve.h"
struct nbtlist_state {
struct nbt_name name;

View File

@ -30,6 +30,7 @@
#include "libnet/userman.h"
#include "libnet/groupinfo.h"
#include "librpc/gen_ndr/ndr_samr_c.h"
#include "libnet/libnet_proto.h"
struct groupinfo_state {

View File

@ -26,6 +26,7 @@
#include "libnet/composite.h"
#include "libnet/groupman.h"
#include "librpc/gen_ndr/ndr_samr_c.h"
#include "libnet/libnet_proto.h"
struct groupadd_state {

View File

@ -24,7 +24,7 @@
#include "libcli/security/security.h"
#include "lib/events/events.h"
struct libnet_context *py_net_ctx(PyObject *obj, struct event_context *ev)
static struct libnet_context *py_net_ctx(PyObject *obj, struct event_context *ev)
{
/* FIXME: Use obj */
return libnet_context_init(ev, global_loadparm);

View File

@ -29,6 +29,7 @@
#include "libnet/userman.h"
#include "libnet/userinfo.h"
#include "librpc/gen_ndr/ndr_samr_c.h"
#include "libnet/libnet_proto.h"
struct userinfo_state {

View File

@ -27,6 +27,7 @@
#include "libnet/userman.h"
#include "libnet/userinfo.h"
#include "librpc/gen_ndr/ndr_samr_c.h"
#include "libnet/libnet_proto.h"
/*
* Composite USER ADD functionality

View File

@ -29,36 +29,6 @@
int NDR_CHECK_depth = 0;
int NDR_CHECK_shift = 0x18;
int get_CIMTYPE_size(int t)
{
if (t & CIM_FLAG_ARRAY) return 4;
t &= 0x1FF;
switch (t) {
case CIM_SINT8:
case CIM_UINT8:
return 1;
case CIM_SINT16:
case CIM_UINT16:
case CIM_BOOLEAN:
return 2;
case CIM_SINT32:
case CIM_UINT32:
case CIM_REAL32:
case CIM_STRING:
case CIM_DATETIME:
case CIM_REFERENCE:
case CIM_OBJECT:
return 4;
case CIM_SINT64:
case CIM_UINT64:
case CIM_REAL64:
return 8;
default:
DEBUG(0, ("Unknown CIMTYPE size for %04X", t));
return 4;
}
}
enum ndr_err_code ndr_push_BSTR(struct ndr_push *ndr, int ndr_flags, const struct BSTR *r)
{
uint32_t len;

View File

@ -23,6 +23,7 @@
#include "nbt_server/nbt_server.h"
#include "lib/socket/socket.h"
#include "librpc/gen_ndr/ndr_nbt.h"
#include "nbt_server/dgram/proto.h"
static const char *nbt_browse_opcode_string(enum nbt_browse_opcode r)
{

View File

@ -31,6 +31,7 @@
#include "smbd/service_task.h"
#include "cldap_server/cldap_server.h"
#include "libcli/security/security.h"
#include "nbt_server/dgram/proto.h"
/*
reply to a GETDC request

View File

@ -31,6 +31,7 @@
#include "system/time.h"
#include "system/dir.h"
#include "ntvfs/ntvfs.h"
#include "ntvfs/cifs_posix_cli/proto.h"
/*
convert a windows path to a unix path - don't do any manging or case sensitive handling

View File

@ -24,6 +24,8 @@
#include "librpc/gen_ndr/srvsvc.h"
#include "rpc_server/common/common.h"
#include "param/param.h"
#include "ntvfs/ipc/ipc.h"
#include "ntvfs/ipc/proto.h"
/* At this moment these are just dummy functions, but you might get the
* idea. */

View File

@ -28,6 +28,7 @@
#include "system/time.h"
#include "system/dir.h"
#include "ntvfs/ntvfs.h"
#include "ntvfs/simple/proto.h"
/*
convert a windows path to a unix path - don't do any manging or case sensitive handling

View File

@ -287,7 +287,7 @@ static NTSTATUS sldb_get_config(TALLOC_CTX *mem_ctx,
goto done; \
} } while(0)
NTSTATUS sldb_create(struct share_context *ctx, const char *name, struct share_info *info, int count)
static NTSTATUS sldb_create(struct share_context *ctx, const char *name, struct share_info *info, int count)
{
struct ldb_context *ldb;
struct ldb_message *msg;
@ -426,7 +426,7 @@ done:
goto done; \
} } while(0)
NTSTATUS sldb_set(struct share_context *ctx, const char *name, struct share_info *info, int count)
static NTSTATUS sldb_set(struct share_context *ctx, const char *name, struct share_info *info, int count)
{
struct ldb_context *ldb;
struct ldb_message *msg;
@ -535,7 +535,7 @@ done:
return ret;
}
NTSTATUS sldb_remove(struct share_context *ctx, const char *name)
static NTSTATUS sldb_remove(struct share_context *ctx, const char *name)
{
struct ldb_context *ldb;
struct ldb_dn *dn;

View File

@ -26,6 +26,8 @@
#include "dsdb/samdb/samdb.h"
#include "auth/auth.h"
#include "param/param.h"
#include "rpc_server/common/common.h"
#include "rpc_server/common/proto.h"
/*
Here are common server info functions used by some dcerpc server interfaces

View File

@ -23,6 +23,8 @@
#include "param/share.h"
#include "librpc/gen_ndr/srvsvc.h"
#include "rpc_server/dcerpc_server.h"
#include "rpc_server/common/common.h"
#include "rpc_server/common/proto.h"
/*
Here are common server info functions used by some dcerpc server interfaces

View File

@ -330,7 +330,7 @@ static WERROR dcesrv_drsuapi_DsGetNT4ChangeLog(struct dcesrv_call_state *dce_cal
/*
drsuapi_DsCrackNames
*/
WERROR dcesrv_drsuapi_DsCrackNames(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
static WERROR dcesrv_drsuapi_DsCrackNames(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
struct drsuapi_DsCrackNames *r)
{
WERROR status;
@ -478,7 +478,7 @@ static WERROR dcesrv_DRSUAPI_REMOVE_DS_DOMAIN(struct dcesrv_call_state *dce_call
}
/* Obtain the site name from a server DN */
const char *result_site_name(struct ldb_dn *site_dn)
static const char *result_site_name(struct ldb_dn *site_dn)
{
/* Format is cn=<NETBIOS name>,cn=Servers,cn=<site>,cn=sites.... */
const struct ldb_val *val = ldb_dn_get_component_val(site_dn, 2);

View File

@ -18,6 +18,7 @@
*/
#include "includes.h"
#include "scripting/python/modules.h"
#include <Python.h>
extern void init_ldb(void);

View File

@ -20,6 +20,7 @@
#include "includes.h"
#include "smbd/process_model.h"
#include "smbd/process_model_proto.h"
#include "param/param.h"
static const struct model_ops *process_model_byname(const char *name);

View File

@ -27,6 +27,7 @@
#include "libnet/libnet.h"
#include "librpc/gen_ndr/ndr_samr_c.h"
#include "param/param.h"
#include "torture/libnet/utils.h"
bool test_opendomain(struct torture_context *tctx,

View File

@ -474,7 +474,7 @@ const static struct torture_ui_ops quiet_ui_ops = {
.test_result = quiet_test_result
};
void run_shell(struct torture_context *tctx)
static void run_shell(struct torture_context *tctx)
{
char *cline;
int argc;

View File

@ -24,6 +24,7 @@
#include "../lib/util/dlinklist.h"
#include "param/param.h"
#include "lib/cmdline/popt_common.h"
#include "torture/smbtorture.h"
_PUBLIC_ int torture_numops=10;
_PUBLIC_ int torture_entries=1000;