diff options
author | Tim Potter <tpot@samba.org> | 2005-11-10 03:48:56 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:46:01 -0500 |
commit | 0eeedb97a5b28c20edcf13d37e52b8e8b98567f6 (patch) | |
tree | 91bfe583a974b35795fada1c7b53a7a288bd8d22 /source4/torture | |
parent | 16a9bfd33f52cb398c6d3d3472d9dbe53927370d (diff) | |
download | samba-0eeedb97a5b28c20edcf13d37e52b8e8b98567f6.tar.gz samba-0eeedb97a5b28c20edcf13d37e52b8e8b98567f6.tar.bz2 samba-0eeedb97a5b28c20edcf13d37e52b8e8b98567f6.zip |
r11626: Fix unhandled enum in case statement warnings by noting appropriately
that some values aren't handled. The remaining warnings I think are
actual bugs or required functionality that is missing (mostly lack of
server side Unix extensions).
(This used to be commit 03c7da27a06736f2a27d76e6a00a24ab54453af9)
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/gentest.c | 8 | ||||
-rw-r--r-- | source4/torture/rpc/samsync.c | 17 |
2 files changed, 25 insertions, 0 deletions
diff --git a/source4/torture/gentest.c b/source4/torture/gentest.c index 8a2bba8497..6ce0eb543a 100644 --- a/source4/torture/gentest.c +++ b/source4/torture/gentest.c @@ -1600,6 +1600,14 @@ static BOOL cmp_fileinfo(int instance, CHECK_EQUAL(attribute_tag_information.out.attrib); CHECK_EQUAL(attribute_tag_information.out.reparse_tag); break; + + /* Unhandled levels */ + + case RAW_FILEINFO_SEC_DESC: + case RAW_FILEINFO_EA_LIST: + case RAW_FILEINFO_UNIX_BASIC: + case RAW_FILEINFO_UNIX_LINK: + break; } return True; diff --git a/source4/torture/rpc/samsync.c b/source4/torture/rpc/samsync.c index 9cd30ef019..93bfb71325 100644 --- a/source4/torture/rpc/samsync.c +++ b/source4/torture/rpc/samsync.c @@ -1174,6 +1174,23 @@ static BOOL test_DatabaseSync(struct samsync_state *samsync_state, ret = False; } break; + case NETR_DELTA_DELETE_GROUP: + case NETR_DELTA_RENAME_GROUP: + case NETR_DELTA_DELETE_USER: + case NETR_DELTA_RENAME_USER: + case NETR_DELTA_GROUP_MEMBER: + case NETR_DELTA_DELETE_ALIAS: + case NETR_DELTA_RENAME_ALIAS: + case NETR_DELTA_ALIAS_MEMBER: + case NETR_DELTA_DELETE_TRUST: + case NETR_DELTA_DELETE_ACCOUNT: + case NETR_DELTA_DELETE_SECRET: + case NETR_DELTA_DELETE_GROUP2: + case NETR_DELTA_DELETE_USER2: + case NETR_DELTA_MODIFY_COUNT: + printf("Unhandled delta type %d\n", r.out.delta_enum_array->delta_enum[d].delta_type); + ret = False; + break; } talloc_free(delta_ctx); } |