K 10
svn:author
V 6
iulius
K 8
svn:date
V 27
2012-01-14T13:20:10.577480Z
K 7
svn:log
V 808
fix gcc warning with new Cyrus SASL version

Cyrus SASL 2.1.25 modified the prototype of SASL callback functions
to fix the "function declaration isn't a prototype" warning.

<sasl/saslplug.h>:
@@ -33,9 +33,10 @@
 *  SASL_FAIL -- unable to find a callback of the requested type
 *  SASL_INTERACT -- caller must use interaction to get data
 */
+typedef int (*sasl_callback_ft)(void);
 typedef int sasl_getcallback_t(sasl_conn_t *conn,
                   unsigned long callbackid,
-                  int (**pproc)(),
+                  sasl_callback_ft * pproc,
                   void **pcontext);


When using callbacks, we now cast the argument:
    (sasl_callback_ft) &getsimple
to silent "initialization from incompatible pointer type" warnings,
and define sasl_callback_ft for older Cyrus SASL versions.

END
