diff options
author | Derrell Lipman <derrell@samba.org> | 2006-06-27 02:30:58 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:18:59 -0500 |
commit | c1b4c510530ca3118d1eccb9615a8cad732c7373 (patch) | |
tree | ad8384363d78d6a9ceb78685176f39053d8be8a8 /examples/libsmbclient | |
parent | 2b8d72f09c6d79d5d41421545b538da573adcd9d (diff) | |
download | samba-c1b4c510530ca3118d1eccb9615a8cad732c7373.tar.gz |
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
Diffstat (limited to 'examples/libsmbclient')
-rw-r--r-- | examples/libsmbclient/testbrowse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/libsmbclient/testbrowse.c b/examples/libsmbclient/testbrowse.c index 96f78aad85a..562d2c2aeb8 100644 --- a/examples/libsmbclient/testbrowse.c +++ b/examples/libsmbclient/testbrowse.c @@ -120,10 +120,10 @@ main(int argc, char * argv[]) (no_auth ? no_auth_data_fn : get_auth_data_fn); } - /* If we've been asked to log to stderr instead of stdout... */ + /* If we've been asked to log to stderr instead of stdout, ... */ if (debug_stderr) { /* ... then set the option to do so */ - smbc_option_set(context, "debug_stderr", (void *) 1); + smbc_option_set(context, "debug_to_stderr", 1); } /* Initialize the context using the previously specified options */ |