summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorDerrell Lipman <derrell@samba.org>2005-12-29 17:03:39 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:06:00 -0500
commitcbc97b4e5aee1fe6488ef316374b75a58b667ccc (patch)
tree3d0fc2b66d67c77265d2110e0dc82c21c9dbcb19 /source3/libsmb
parente13d0cb3ec89d83db8893341ca7ae24c07aad1fb (diff)
downloadsamba-cbc97b4e5aee1fe6488ef316374b75a58b667ccc.tar.gz
samba-cbc97b4e5aee1fe6488ef316374b75a58b667ccc.tar.bz2
samba-cbc97b4e5aee1fe6488ef316374b75a58b667ccc.zip
r12579: r12122@cabra: derrell | 2005-12-29 12:03:00 -0500
allow for arbitrary option value types (This used to be commit 64c8e32b6382e48bce5c1f18179e66ca765a70af)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/libsmbclient.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/source3/libsmb/libsmbclient.c b/source3/libsmb/libsmbclient.c
index 6eca3946d8..51f94e42e3 100644
--- a/source3/libsmb/libsmbclient.c
+++ b/source3/libsmb/libsmbclient.c
@@ -5947,14 +5947,22 @@ smbc_free_context(SMBCCTX *context,
void
smbc_option_set(SMBCCTX *context,
char *option_name,
- void *option_value)
+ ...)
{
+ va_list args;
+
+ va_start(args, option_name);
+
if (strcmp(option_name, "debug_stderr") == 0) {
/*
* Log to standard error instead of standard output.
+ *
+ * optional parameters: none (it can't be turned off once on)
*/
context->internal->_debug_stderr = True;
}
+
+ va_end(args);
}