From: Alan T. DeKok Date: Fri, 14 Dec 2012 10:43:45 +0000 (-0500) Subject: Fix compiler warnings X-Git-Tag: release_3_0_0_beta1~1366 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8cc6561eac67e92bda901498268c0428114bd0b0;p=thirdparty%2Ffreeradius-server.git Fix compiler warnings --- diff --git a/src/modules/rlm_opendirectory/rlm_opendirectory.c b/src/modules/rlm_opendirectory/rlm_opendirectory.c index 2204442b5a8..24369667d34 100644 --- a/src/modules/rlm_opendirectory/rlm_opendirectory.c +++ b/src/modules/rlm_opendirectory/rlm_opendirectory.c @@ -41,12 +41,11 @@ #include #include -#ifdef HAVE_APPLE_SPI -#include -#else -int mbr_check_service_membership(const uuid_t user, const char *servicename, int *ismember); -int mbr_check_membership_refresh(const uuid_t user, uuid_t group, int *ismember); -#endif +/* + * FIXME: The configure script should check for these... + */ +extern int mbr_check_service_membership(const uuid_t user, const char *servicename, int *ismember); +extern int mbr_check_membership_refresh(const uuid_t user, uuid_t group, int *ismember); /* RADIUS service ACL constants */ #define kRadiusSACLName "com.apple.access_radius" @@ -68,14 +67,14 @@ static long od_check_passwd(const char *uname, const char *password) tDirNodeReference nodeRef = 0; long status = eDSNoErr; tContextData context = 0; - unsigned long nodeCount = 0; + uint32_t nodeCount = 0; uint32_t attrIndex = 0; tDataList *nodeName = NULL; tAttributeEntryPtr pAttrEntry = NULL; tDataList *pRecName = NULL; tDataList *pRecType = NULL; tDataList *pAttrType = NULL; - unsigned long recCount = 0; + uint32_t recCount = 0; tRecordEntry *pRecEntry = NULL; tAttributeListRef attrListRef = 0; char *pUserLocation = NULL;