summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2008-10-19 13:18:20 +0200
committerKai Blin <kai@samba.org>2008-10-19 13:23:10 +0200
commit202affa511125cf54d86d92a9ee1b6ecd49ad5af (patch)
tree4d927aeeddb30d5f405f780750a238ea58b4f5d3
parent99f0d6b1c1bf15716cf20722cd2bf83536614b1c (diff)
downloadsamba-202affa511125cf54d86d92a9ee1b6ecd49ad5af.tar.gz
samba-202affa511125cf54d86d92a9ee1b6ecd49ad5af.tar.bz2
samba-202affa511125cf54d86d92a9ee1b6ecd49ad5af.zip
rpc: Fix the merged build breaking on StrnCaseCmp.
-rw-r--r--librpc/ndr/ndr_drsuapi.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/librpc/ndr/ndr_drsuapi.c b/librpc/ndr/ndr_drsuapi.c
index 38474c2540..4d1ae8b163 100644
--- a/librpc/ndr/ndr_drsuapi.c
+++ b/librpc/ndr/ndr_drsuapi.c
@@ -25,6 +25,8 @@
#include "librpc/gen_ndr/ndr_misc.h"
#include "../lib/util/asn1.h"
#include "librpc/ndr/ndr_compression.h"
+/* We don't need multibyte if we're just comparing to 'ff' */
+#undef strncasecmp
void ndr_print_drsuapi_DsReplicaObjectListItem(struct ndr_print *ndr, const char *name,
const struct drsuapi_DsReplicaObjectListItem *r)
@@ -91,11 +93,7 @@ enum ndr_err_code ndr_push_drsuapi_DsReplicaOID(struct ndr_push *ndr, int ndr_fl
if (r->oid) {
DATA_BLOB blob;
-#if (_SAMBA_BUILD_ == 3)
- if (StrnCaseCmp("ff", r->oid, 2) == 0) {
-#else
if (strncasecmp("ff", r->oid, 2) == 0) {
-#endif
blob = strhex_to_data_blob(ndr, r->oid);
if (!blob.data) {
return ndr_push_error(ndr, NDR_ERR_SUBCONTEXT,
@@ -167,11 +165,7 @@ size_t ndr_size_drsuapi_DsReplicaOID_oid(const char *oid, int flags)
if (!oid) return 0;
-#if (_SAMBA_BUILD_ == 3)
- if (StrnCaseCmp("ff", oid, 2) == 0) {
-#else
if (strncasecmp("ff", oid, 2) == 0) {
-#endif
_blob = strhex_to_data_blob(NULL, oid);
if (_blob.data) {
ret = _blob.length;