summaryrefslogtreecommitdiffstats
path: root/source3/include
diff options
context:
space:
mode:
authorDerrell Lipman <derrell@samba.org>2006-06-27 02:30:58 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:18:59 -0500
commit9718506d35ca14c5233b613c647609bf2589f38b (patch)
tree49ce9dccfaeb36d4253b30d9dc870bd9ebd703d4 /source3/include
parentad6f4f14ad10dab330e51ad36f8f8d6ccc065be2 (diff)
downloadsamba-9718506d35ca14c5233b613c647609bf2589f38b.tar.gz
samba-9718506d35ca14c5233b613c647609bf2589f38b.tar.xz
samba-9718506d35ca14c5233b613c647609bf2589f38b.zip
r16550: Fix bug 3866. Thanks for the report!
Although I've never met a computer or compiler that produced pointers to functions which are a different size than pointers to data, I suppose they probably exist. Assigning a pointer to a function is technically illegal in C anyway. Change casts of the option_value based on the option_name to use of variable argument lists. For binary compatibility, I've maintained but deprecated the old behavior of debug_stderr (which expected to be passed a NULL or non-NULL pointer) and added a new option debug_to_stderr which properly expects a boolean (int) parameter. Derrell (This used to be commit c1b4c510530ca3118d1eccb9615a8cad732c7373)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/libsmbclient.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/include/libsmbclient.h b/source3/include/libsmbclient.h
index ba92259f701..66a567a0d53 100644
--- a/source3/include/libsmbclient.h
+++ b/source3/include/libsmbclient.h
@@ -635,7 +635,7 @@ int smbc_free_context(SMBCCTX * context, int shutdown_ctx);
void
smbc_option_set(SMBCCTX *context,
char *option_name,
- void *option_value);
+ ... /* option_value */);
/*
* Retrieve the current value of an option
*