summaryrefslogtreecommitdiff
path: root/source4/lib/wmi/tools/wmic.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-09-14 17:07:03 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-09-15 17:40:25 +0200
commit74974c0f5658df569c10f1838bf5bf22d4d40cbf (patch)
tree0cc84871049bb1c76df785c9b42adeb83bc542b6 /source4/lib/wmi/tools/wmic.c
parent2fc75a6c4e930cee03ab53ab758b60fc4f9ff0f7 (diff)
downloadsamba-74974c0f5658df569c10f1838bf5bf22d4d40cbf.tar.gz
samba-74974c0f5658df569c10f1838bf5bf22d4d40cbf.tar.bz2
samba-74974c0f5658df569c10f1838bf5bf22d4d40cbf.zip
Fix syntax errors.
Diffstat (limited to 'source4/lib/wmi/tools/wmic.c')
-rw-r--r--source4/lib/wmi/tools/wmic.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/lib/wmi/tools/wmic.c b/source4/lib/wmi/tools/wmic.c
index 3d5d654eb8..dc33d71ad1 100644
--- a/source4/lib/wmi/tools/wmic.c
+++ b/source4/lib/wmi/tools/wmic.c
@@ -30,8 +30,7 @@
#include "librpc/gen_ndr/com_dcom.h"
#include "lib/com/dcom/dcom.h"
-#include "lib/com/proto.h"
-#include "lib/com/dcom/proto.h"
+#include "lib/com/com.h"
#include "lib/wmi/wmi.h"
@@ -162,6 +161,8 @@ int main(int argc, char **argv)
NTSTATUS status;
struct IWbemServices *pWS = NULL;
struct BSTR queryLanguage, query;
+ struct IEnumWbemClassObject *pEnum = NULL;
+ struct com_context *ctx = NULL;
parse_args(argc, argv, &args);
@@ -172,7 +173,6 @@ int main(int argc, char **argv)
result = WBEM_ConnectServer(ctx, args.hostname, args.ns, 0, 0, 0, 0, 0, 0, &pWS);
WERR_CHECK("Login to remote object.");
- struct IEnumWbemClassObject *pEnum = NULL;
queryLanguage.data = "WQL";
query.data = args.query;
result = IWbemServices_ExecQuery(pWS, ctx, queryLanguage, query, WBEM_FLAG_RETURN_IMMEDIATELY | WBEM_FLAG_ENSURE_LOCATABLE, NULL, &pEnum);