s3:lib/netapi/tests: fix invalid switch enum level warning
authorStefan Metzmacher <metze@samba.org>
Wed, 26 Feb 2014 19:16:26 +0000 (20:16 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 25 Nov 2014 06:25:44 +0000 (07:25 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/lib/netapi/tests/netgroup.c

index c872087cffd3384cba0fa35f5739ac109a5d7f3d..dba4fe7567c9bbb71bad6fc2ce44efd8f3deea16 100644 (file)
@@ -348,7 +348,7 @@ NET_API_STATUS netapitest_group(struct libnetapi_ctx *ctx,
        printf("testing NetGroupSetInfo level 0\n");
 
        status = NetGroupSetInfo(hostname, groupname, 0, (uint8_t *)&g0, &parm_err);
-       switch (status) {
+       switch ((int)status) {
                case 0:
                        break;
                case 50: /* not supported */