From ec40d70b3b6f3032c86bfa4a80066572e0f0eaa7 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sat, 10 May 2003 10:56:20 +0000 Subject: Patch from metze and me that adds dummy smb_register_*() functions (This used to be commit 367a5cad1edf6a49783806d5a8b59a62d8856706) --- source3/utils/net.c | 4 ++++ source3/utils/nmblookup.c | 2 ++ source3/utils/ntlm_auth.c | 2 ++ source3/utils/pdbedit.c | 3 +++ source3/utils/profiles.c | 2 ++ source3/utils/rpccheck.c | 2 ++ source3/utils/smbcacls.c | 2 ++ source3/utils/smbcontrol.c | 2 ++ source3/utils/smbcquotas.c | 2 ++ source3/utils/smbfilter.c | 2 ++ source3/utils/smbpasswd.c | 3 +++ source3/utils/smbtree.c | 2 ++ source3/utils/status.c | 2 ++ source3/utils/testparm.c | 2 ++ source3/utils/testprns.c | 2 ++ 15 files changed, 34 insertions(+) (limited to 'source3/utils') diff --git a/source3/utils/net.c b/source3/utils/net.c index aa245a920a..b2a86bb020 100644 --- a/source3/utils/net.c +++ b/source3/utils/net.c @@ -40,6 +40,10 @@ #include "includes.h" #include "../utils/net.h" +#define HAVE_SMB_REGISTER_PASSDB +#include "module_dummy.h" + + /***********************************************************************/ /* Beginning of internationalization section. Translatable constants */ /* should be kept in this area and referenced in the rest of the code. */ diff --git a/source3/utils/nmblookup.c b/source3/utils/nmblookup.c index d2c5cbc00e..7083961ccb 100644 --- a/source3/utils/nmblookup.c +++ b/source3/utils/nmblookup.c @@ -24,6 +24,8 @@ #include "includes.h" +#include "module_dummy.h" + extern BOOL AllowDebugChange; static BOOL give_flags = False; diff --git a/source3/utils/ntlm_auth.c b/source3/utils/ntlm_auth.c index 42490190f3..b30efac4b7 100644 --- a/source3/utils/ntlm_auth.c +++ b/source3/utils/ntlm_auth.c @@ -27,6 +27,8 @@ #undef DBGC_CLASS #define DBGC_CLASS DBGC_WINBIND +#include "module_dummy.h" + #define SQUID_BUFFER_SIZE 2010 enum squid_mode { diff --git a/source3/utils/pdbedit.c b/source3/utils/pdbedit.c index 13f35e8880..81d0a61287 100644 --- a/source3/utils/pdbedit.c +++ b/source3/utils/pdbedit.c @@ -23,6 +23,9 @@ #include "includes.h" +#define HAVE_SMB_REGISTER_PASSDB +#include "module_dummy.h" + #define BIT_BACKEND 0x00000004 #define BIT_VERBOSE 0x00000008 #define BIT_SPSTYLE 0x00000010 diff --git a/source3/utils/profiles.c b/source3/utils/profiles.c index afaa83f638..4a6fa59b53 100644 --- a/source3/utils/profiles.c +++ b/source3/utils/profiles.c @@ -297,6 +297,8 @@ Hope this helps.... (Although it was "fun" for me to uncover this things, #include #include +#include "module_dummy.h" + typedef unsigned int DWORD; typedef unsigned short WORD; diff --git a/source3/utils/rpccheck.c b/source3/utils/rpccheck.c index ae109f69b6..11a2a9d8ba 100644 --- a/source3/utils/rpccheck.c +++ b/source3/utils/rpccheck.c @@ -20,6 +20,8 @@ #include "includes.h" +#include "module_dummy.h" + main() { char filter[]="0123456789ABCDEF"; diff --git a/source3/utils/smbcacls.c b/source3/utils/smbcacls.c index 9d8a657726..35a9b05dcd 100644 --- a/source3/utils/smbcacls.c +++ b/source3/utils/smbcacls.c @@ -24,6 +24,8 @@ #include "includes.h" +#include "module_dummy.h" + static pstring owner_username; static fstring server; static int test_args = False; diff --git a/source3/utils/smbcontrol.c b/source3/utils/smbcontrol.c index 06add6af22..0c68bfc329 100644 --- a/source3/utils/smbcontrol.c +++ b/source3/utils/smbcontrol.c @@ -25,6 +25,8 @@ #include "includes.h" +#include "module_dummy.h" + /* Default timeout value when waiting for replies (in seconds) */ #define DEFAULT_TIMEOUT 10 diff --git a/source3/utils/smbcquotas.c b/source3/utils/smbcquotas.c index 9c7379ca2a..9ba243a4a5 100644 --- a/source3/utils/smbcquotas.c +++ b/source3/utils/smbcquotas.c @@ -24,6 +24,8 @@ #include "includes.h" +#include "module_dummy.h" + static pstring server; /* numeric is set when the user wants numeric SIDs and ACEs rather diff --git a/source3/utils/smbfilter.c b/source3/utils/smbfilter.c index 1a0d639f02..fe5208227d 100644 --- a/source3/utils/smbfilter.c +++ b/source3/utils/smbfilter.c @@ -20,6 +20,8 @@ #include "includes.h" +#include "module_dummy.h" + #define SECURITY_MASK 0 #define SECURITY_SET 0 diff --git a/source3/utils/smbpasswd.c b/source3/utils/smbpasswd.c index 577e467fbd..2070adb3e5 100644 --- a/source3/utils/smbpasswd.c +++ b/source3/utils/smbpasswd.c @@ -19,6 +19,9 @@ #include "includes.h" +#define HAVE_SMB_REGISTER_PASSDB +#include "module_dummy.h" + extern BOOL AllowDebugChange; /* diff --git a/source3/utils/smbtree.c b/source3/utils/smbtree.c index cbe1bd448f..bc669b4aa1 100644 --- a/source3/utils/smbtree.c +++ b/source3/utils/smbtree.c @@ -22,6 +22,8 @@ #include "includes.h" +#include "module_dummy.h" + static BOOL use_bcast; /* How low can we go? */ diff --git a/source3/utils/status.c b/source3/utils/status.c index bbaeecdd6b..fab55baabb 100644 --- a/source3/utils/status.c +++ b/source3/utils/status.c @@ -35,6 +35,8 @@ #include "includes.h" +#include "module_dummy.h" + static pstring Ucrit_username = ""; /* added by OH */ static pid_t Ucrit_pid[100]; /* Ugly !!! */ /* added by OH */ static int Ucrit_MaxPid=0; /* added by OH */ diff --git a/source3/utils/testparm.c b/source3/utils/testparm.c index e3d6ce0274..b3e8f8badb 100644 --- a/source3/utils/testparm.c +++ b/source3/utils/testparm.c @@ -34,6 +34,8 @@ #include "includes.h" +#include "module_dummy.h" + extern BOOL AllowDebugChange; /*********************************************** diff --git a/source3/utils/testprns.c b/source3/utils/testprns.c index 7e52b86afb..758e2b41dd 100644 --- a/source3/utils/testprns.c +++ b/source3/utils/testprns.c @@ -32,6 +32,8 @@ #include "includes.h" +#include "module_dummy.h" + int main(int argc, char *argv[]) { const char *pszTemp; -- cgit