Remove include/local.h and move defines to more appropriate places.
authorJelmer Vernooij <jelmer@samba.org>
Fri, 24 Oct 2008 15:53:38 +0000 (17:53 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Fri, 24 Oct 2008 15:53:38 +0000 (17:53 +0200)
lib/util/util.h
source4/client/client.c
source4/include/includes.h
source4/include/local.h [deleted file]
source4/param/generic.c
source4/param/loadparm.h

index 1cf60bae390ca70e6b7932d411f6927508236ae8..6a341b218d9f8eeb19446736c12164b8c5151287 100644 (file)
@@ -353,6 +353,8 @@ _PUBLIC_ bool strequal(const char *s1, const char *s2);
 
 /* The following definitions come from lib/util/util_strlist.c  */
 
+/* separators for lists */
+#define LIST_SEP " \t,\n\r"
 
 /**
   build a null terminated list of strings from a input string and a
index a61d1b4ca4ce564226a9a3cf76bb6dd659fcb5fb..56b923974b9f0fc09e091ce2f3ebdd5ef2405a71 100644 (file)
 #include "param/param.h"
 #include "librpc/rpc/dcerpc.h"
 
+/* the default pager to use for the client "more" command. Users can
+ *    override this with the PAGER environment variable */
+#ifndef DEFAULT_PAGER
+#define DEFAULT_PAGER "more"
+#endif
+
 struct smbclient_context {
        char *remote_cur_dir;
        struct smbcli_state *cli;
index 6065cfc17cdb8e1f5df6b47b3322b994276fbf2d..08d6cdb5f690b49cec790378eb103642b316073f 100644 (file)
@@ -30,8 +30,6 @@
 #endif
 #endif /* NO_CONFIG_H */
 
-#include "local.h"
-
 #include "system/time.h"
 #include "system/wait.h"
 
diff --git a/source4/include/local.h b/source4/include/local.h
deleted file mode 100644 (file)
index 5036f54..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-/* Copyright (C) 1995-1998 Samba-Team */
-/* Copyright (C) 1998 John H Terpstra <jht@aquasoft.com.au> */
-
-/* local definitions for file server */
-#ifndef _LOCAL_H
-#define _LOCAL_H
-
-/* The default workgroup - usually overridden in smb.conf */
-#ifndef DEFAULT_WORKGROUP
-#define DEFAULT_WORKGROUP "WORKGROUP"
-#endif
-
-/* the maximum debug level to compile into the code. This assumes a good 
-   optimising compiler that can remove unused code 
-   for embedded or low-memory systems set this to a value like 2 to get
-   only important messages. This gives *much* smaller binaries
-*/
-#ifndef MAX_DEBUG_LEVEL
-#define MAX_DEBUG_LEVEL 1000
-#endif
-
-/* This defines the section name in the configuration file that will contain */
-/* global parameters - that is, parameters relating to the whole server, not */
-/* just services. This name is then reserved, and may not be used as a       */
-/* a service name. It will default to "global" if not defined here.          */
-#define GLOBAL_NAME "global"
-#define GLOBAL_NAME2 "globals"
-
-/* define what facility to use for syslog */
-#ifndef SYSLOG_FACILITY
-#define SYSLOG_FACILITY LOG_DAEMON
-#endif
-
-/* separators for lists */
-#define LIST_SEP " \t,\n\r"
-
-/* the default pager to use for the client "more" command. Users can
-   override this with the PAGER environment variable */
-#ifndef DEFAULT_PAGER
-#define DEFAULT_PAGER "more"
-#endif
-
-/*
- * Default passwd chat script.
- */
-#define DEFAULT_PASSWD_CHAT "*new*password* %n\\n *new*password* %n\\n *changed*"
-
-/* Max number of jobs per print queue. */
-#define PRINT_MAX_JOBID 10000
-
-#endif
index ed3045605db6b3ef43e81e3ad4f93c5b0bd9ed07..292b91690f80e439e4f2601e88d8e95626beace5 100644 (file)
@@ -127,9 +127,6 @@ const char **param_get_string_list(struct param_context *ctx, const char *param,
        if (p == NULL)
                return NULL;
 
-       if (separator == NULL)
-               separator = LIST_SEP;
-       
        return (const char **)str_list_make(ctx, p->value, separator);
 }
 
index cd3c0b9595d0fc423695ccbc1ae084321a44a082..47bce75cfb0b6757d4f7f33ba87d814d48589ec9 100644 (file)
@@ -59,9 +59,6 @@ struct parm_struct {
        } def;
 };
 
-
-
-
 #define FLAG_DEFAULT    0x0001 /* this option was a default */
 #define FLAG_CMDLINE    0x0002 /* this option was set from the command line */
 
@@ -73,3 +70,30 @@ struct parm_struct {
 #define HOMES_NAME "homes"
 #endif
 
+/* This defines the section name in the configuration file that will contain */
+/* global parameters - that is, parameters relating to the whole server, not */
+/* just services. This name is then reserved, and may not be used as a       */
+/* a service name. It will default to "global" if not defined here.          */
+#ifndef GLOBAL_NAME
+#define GLOBAL_NAME "global"
+#define GLOBAL_NAME2 "globals"
+#endif
+
+/* The default workgroup - usually overridden in smb.conf */
+#ifndef DEFAULT_WORKGROUP
+#define DEFAULT_WORKGROUP "WORKGROUP"
+#endif
+
+/*
+ * Default passwd chat script.
+ */
+#ifndef DEFAULT_PASSWD_CHAT
+#define DEFAULT_PASSWD_CHAT "*new*password* %n\\n *new*password* %n\\n *changed*"
+#endif
+
+/* Max number of jobs per print queue. */
+#ifndef PRINT_MAX_JOBID
+#define PRINT_MAX_JOBID 10000
+#endif
+
+