summaryrefslogtreecommitdiff
path: root/core/services.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/services.cpp')
-rw-r--r--core/services.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/services.cpp b/core/services.cpp
index 06e060c..42f8fb8 100644
--- a/core/services.cpp
+++ b/core/services.cpp
@@ -20,7 +20,7 @@
extern std::list<service*> services;
extern boost::mutex service_list_mutex;
-int ServiceExists(const char *name);
+bool ServiceExists(const char *name);
void CreateServiceFunction(const char* name, SERVICE svc)
{
if(!ServiceExists(name))
@@ -42,7 +42,7 @@ void* CallService(const char *name,void* data)
}
return 0;
}
-int ServiceExists(const char *name)
+bool ServiceExists(const char *name)
{
service_list_mutex.lock();
if(!services.empty())
@@ -50,10 +50,10 @@ int ServiceExists(const char *name)
std::list<service*>::iterator end = services.end();
for(std::list<service*>::iterator i = services.begin(); i != end; ++i)
if(!ACE_OS::strcmp((*i)->getName(), name))
- return 1;
+ return true;
}
service_list_mutex.unlock();
- return 0;
+ return false;
}
service::service(const char* name, SERVICE svc)