From 9f92d586ca537ed093a1d68eacf94315da68a8ad Mon Sep 17 00:00:00 2001 From: Kamen Mazdrashki Date: Sun, 11 Apr 2010 17:04:21 +0300 Subject: s4/libnet: Dump DRSUAPI_DIRERR_OK as unexpected Actually DRSUAPI_DIRERR_OK is not valid error to be returned. I introduce it in the IDL so that I can use it in enum. So it should be dumped as Unexpected error code --- source4/libnet/libnet_become_dc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source4/libnet/libnet_become_dc.c b/source4/libnet/libnet_become_dc.c index 1c0bfbcd3c..ffcf29c3cb 100644 --- a/source4/libnet/libnet_become_dc.c +++ b/source4/libnet/libnet_become_dc.c @@ -2315,8 +2315,6 @@ static void becomeDC_drsuapi1_add_entry_recv(struct tevent_req *subreq) /* dump more detailed error */ switch (err_data->v1.dir_err) { - case DRSUAPI_DIRERR_OK: /* mute compiler warnings */ - break; case DRSUAPI_DIRERR_ATTRIBUTE: /* Dump attribute errors */ attr_err = &err_data->v1.info->attr_err; @@ -2390,6 +2388,7 @@ static void becomeDC_drsuapi1_add_entry_recv(struct tevent_req *subreq) win_errstr(err_data->v1.info->system_err.extended_err), err_data->v1.info->system_err.problem)); break; + case DRSUAPI_DIRERR_OK: /* mute compiler warnings */ default: DEBUGADD(0,(" Unknown DIRERR error class returned!")); break; -- cgit