Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#ifdef _SAMBA_BUILD
+#ifdef _SAMBA_BUILD_
#include "includes.h"
#include "system/network.h"
#else
#include "winbind_client.h"
-#define CONST_DISCARD(type, ptr) ((type) ((void *) (ptr)))
-#define CONST_ADD(type, ptr) ((type) ((const void *) (ptr)))
-
/* Global variables. These are effectively the client state information */
int winbindd_fd = -1; /* fd for winbindd socket */
}
static void
-dequeue_request()
+dequeue_request(void)
{
nsd_file_t *rq;
struct winbindd_request *request;
products. You do not need to give any attribution.
*/
+
+#ifndef CONST_DISCARD
+#define CONST_DISCARD(type, ptr) ((type) ((void *) (ptr)))
+#endif
+
+#ifndef CONST_ADD
+#define CONST_ADD(type, ptr) ((type) ((const void *) (ptr)))
+#endif
+
#ifndef SAFE_FREE
#define SAFE_FREE(x) do { if(x) {free(CONST_DISCARD(void *, (x))); x=NULL;} } while(0)
#endif