diff options
| author | Stefan Metzmacher <metze@samba.org> | 2014-02-26 20:16:26 +0100 |
|---|---|---|
| committer | Andrew Bartlett <abartlet@samba.org> | 2014-04-02 09:03:43 +0200 |
| commit | 80c57ab7970fbf214d3f5c13e8d4b23d5d8846d0 (patch) | |
| tree | 0293becee35bfebc6594f2746bf3d3a3af05d93a /source3/lib/netapi/examples/user | |
| parent | 7d3b35c15504a557474e10236524e78d13980c55 (diff) | |
s3:lib/netapi/examples: remove unused variables
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3/lib/netapi/examples/user')
| -rw-r--r-- | source3/lib/netapi/examples/user/user_modalsset.c | 10 | ||||
| -rw-r--r-- | source3/lib/netapi/examples/user/user_setinfo.c | 7 |
2 files changed, 0 insertions, 17 deletions
diff --git a/source3/lib/netapi/examples/user/user_modalsset.c b/source3/lib/netapi/examples/user/user_modalsset.c index c6958a9012..a5cdc44689 100644 --- a/source3/lib/netapi/examples/user/user_modalsset.c +++ b/source3/lib/netapi/examples/user/user_modalsset.c @@ -34,20 +34,14 @@ int main(int argc, const char **argv) const char *hostname = NULL; uint8_t *buffer = NULL; uint32_t level = 0; - uint32_t value = 0; uint32_t parm_err = 0; struct USER_MODALS_INFO_0 u0; - struct USER_MODALS_INFO_1 u1; - struct USER_MODALS_INFO_2 u2; - struct USER_MODALS_INFO_3 u3; struct USER_MODALS_INFO_1001 u1001; struct USER_MODALS_INFO_1002 u1002; struct USER_MODALS_INFO_1003 u1003; struct USER_MODALS_INFO_1004 u1004; struct USER_MODALS_INFO_1005 u1005; - struct USER_MODALS_INFO_1006 u1006; - struct USER_MODALS_INFO_1007 u1007; poptContext pc; int opt; @@ -79,10 +73,6 @@ int main(int argc, const char **argv) level = atoi(poptGetArg(pc)); } - if (poptPeekArg(pc)) { - value = atoi(poptGetArg(pc)); - } - switch (level) { case 0: u0.usrmod0_min_passwd_len = 0; diff --git a/source3/lib/netapi/examples/user/user_setinfo.c b/source3/lib/netapi/examples/user/user_setinfo.c index 4f02ae7781..56c9822313 100644 --- a/source3/lib/netapi/examples/user/user_setinfo.c +++ b/source3/lib/netapi/examples/user/user_setinfo.c @@ -39,12 +39,6 @@ int main(int argc, const char **argv) const char *val = NULL; struct USER_INFO_0 u0; - struct USER_INFO_1 u1; - struct USER_INFO_2 u2; - struct USER_INFO_3 u3; - struct USER_INFO_4 u4; - struct USER_INFO_21 u21; - struct USER_INFO_22 u22; struct USER_INFO_1003 u1003; struct USER_INFO_1005 u1005; struct USER_INFO_1006 u1006; @@ -56,7 +50,6 @@ int main(int argc, const char **argv) struct USER_INFO_1012 u1012; struct USER_INFO_1014 u1014; struct USER_INFO_1017 u1017; - struct USER_INFO_1020 u1020; struct USER_INFO_1024 u1024; struct USER_INFO_1051 u1051; struct USER_INFO_1052 u1052; |
