summaryrefslogtreecommitdiff
path: root/vdservice
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2012-02-23 22:33:48 +0100
committerChristophe Fergeau <cfergeau@redhat.com>2012-03-01 12:59:05 +0100
commit63541ea6ac722d332966f28e1779e4d668244fcb (patch)
tree9eb813f507823b45a11a8db97ed97981f35266b0 /vdservice
parent04e53efb312cdb1244b11e10f621fe8569c468f2 (diff)
mingw: remove tMain use
mingw does not support it.
Diffstat (limited to 'vdservice')
-rw-r--r--vdservice/vdservice.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/vdservice/vdservice.cpp b/vdservice/vdservice.cpp
index 4701f5a..9c057bb 100644
--- a/vdservice/vdservice.cpp
+++ b/vdservice/vdservice.cpp
@@ -1216,7 +1216,7 @@ void VDService::write_agent_control(uint32_t type, uint32_t opaque)
}
}
-int _tmain(int argc, TCHAR* argv[], TCHAR* envp[])
+int main(int argc, char* argv[], char* envp[])
{
bool success = false;
@@ -1226,9 +1226,9 @@ int _tmain(int argc, TCHAR* argv[], TCHAR* envp[])
}
VDService* vdservice = VDService::get();
if (argc > 1) {
- if (lstrcmpi(argv[1], TEXT("install")) == 0) {
+ if (strcmp(argv[1], "install") == 0) {
success = vdservice->install();
- } else if (lstrcmpi(argv[1], TEXT("uninstall")) == 0) {
+ } else if (strcmp(argv[1], "uninstall") == 0) {
success = vdservice->uninstall();
} else {
printf("Use: vdservice install / uninstall\n");